Only output if different from style_url

This commit is contained in:
Christian Mehlmauer
2014-07-16 18:38:39 +02:00
parent 6ebb9b6f66
commit 26e0066c82
5 changed files with 7 additions and 7 deletions

View File

@@ -15,9 +15,9 @@ class WpTheme < WpItem
include WpTheme::Output
include WpTheme::Childtheme
attr_accessor :additional_url
attr_accessor :referenced_url
def allowed_options; super << :additional_url end
def allowed_options; super << :referenced_url end
def initialize(*args)
super(*args)
@@ -36,7 +36,7 @@ class WpTheme < WpItem
# @return [ String ] The url to the theme stylesheet
def style_url
uri.merge('style.css').to_s
@uri.merge('style.css').to_s
end
end