Method: WPScan::Model::Theme#initialize

Defined in:
app/models/theme.rb

#initialize(slug, blog, opts = {}) ⇒ Theme

See WpItem



11
12
13
14
15
16
17
18
19
20
21
22
# File 'app/models/theme.rb', line 11

def initialize(slug, blog, opts = {})
  super(slug, blog, opts)

  # To be used by #head_and_get
  # If custom wp-content, it will be replaced by blog#url
  @path_from_blog = "wp-content/themes/#{slug}/"

  @uri       = Addressable::URI.parse(blog.url(path_from_blog))
  @style_url = opts[:style_url] || url('style.css')

  parse_style
end