Removes the theme version check from the readme, unrealistic scenario - Ref #737

This commit is contained in:
erwanlr
2014-12-10 17:01:14 +01:00
parent e09b4cc76d
commit e3ac331a71
2 changed files with 4 additions and 29 deletions

View File

@@ -2,16 +2,8 @@
class WpTheme < WpItem
module Versionable
def version
unless @version
@version = Browser.get(style_url).body[%r{Version:\s*([^\s]+)}i, 1]
# Get Version from readme.txt
@version ||= super
end
@version
@version ||= Browser.get(style_url).body[%r{Version:\s*([^\s]+)}i, 1]
end
end
end