Prevent parent theme infinite loop

This commit is contained in:
ethicalhack3r
2014-12-02 16:40:18 +01:00
parent 91a01265e5
commit d230221999
2 changed files with 8 additions and 1 deletions

View File

@@ -3,6 +3,10 @@
class WpTheme < WpItem
module Childtheme
def parent_theme_limit
3
end
def is_child_theme?
return true unless @theme_template.nil?
false