Fix #223 New wordpress urls for most popular plugins & themes
This commit is contained in:
@@ -10,13 +10,13 @@ class GenerateList
|
|||||||
if type =~ /plugins/i
|
if type =~ /plugins/i
|
||||||
@type = 'plugin'
|
@type = 'plugin'
|
||||||
@svn_url = 'http://plugins.svn.wordpress.org/'
|
@svn_url = 'http://plugins.svn.wordpress.org/'
|
||||||
@popular_url = 'http://wordpress.org/extend/plugins/browse/popular/'
|
@popular_url = 'http://wordpress.org/plugins/browse/popular/'
|
||||||
@popular_regex = %r{<h3><a href="http://wordpress.org/extend/plugins/(.+)/">.+</a></h3>}i
|
@popular_regex = %r{<h3><a href="http://wordpress.org/plugins/(.+)/">.+</a></h3>}i
|
||||||
elsif type =~ /themes/i
|
elsif type =~ /themes/i
|
||||||
@type = 'theme'
|
@type = 'theme'
|
||||||
@svn_url = 'http://themes.svn.wordpress.org/'
|
@svn_url = 'http://themes.svn.wordpress.org/'
|
||||||
@popular_url = 'http://wordpress.org/extend/themes/browse/popular/'
|
@popular_url = 'http://wordpress.org/themes/browse/popular/'
|
||||||
@popular_regex = %r{<h3><a href="http://wordpress.org/extend/themes/(.+)">.+</a></h3>}i
|
@popular_regex = %r{<h3><a href="http://wordpress.org/themes/(.+)">.+</a></h3>}i
|
||||||
else
|
else
|
||||||
raise "Type #{type} not defined"
|
raise "Type #{type} not defined"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user