app/views/json/theme.erb in wpscan-3.0 vs app/views/json/theme.erb in wpscan-3.0.1
- old
+ new
@@ -1,11 +1,5 @@
-"name": <%= @theme.name.to_json %>,
-"location": <%= @theme.url.to_json %>,
-"latest_version": <%= @theme.latest_version.to_json %>,
-"readme_url": <%= @theme.readme_url.to_json %>,
-"changelog_url": <%= @theme.changelog_url.to_json %>,
-"directory_listing": <%= @theme.directory_listing?.to_json %>,
-"error_log_url": <% if @theme.error_log? %><%= @theme.url('error_log').to_json %><% else %>null<% end %>,
+<%= render('@wp_item', wp_item: @theme) %>,
"style_url": <%= @theme.style_url.to_json %>,
"style_name": <%= @theme.style_name.to_json %>,
"style_uri": <%= @theme.style_uri.to_json %>,
"description": <%= @theme.description.to_json %>,
"author": <%= @theme.author.to_json %>,
\ No newline at end of file