This commit is contained in:
erwanlr
2013-07-16 17:46:41 +02:00
parent 85b4f987bb
commit 0f8f49f19c
3 changed files with 79 additions and 3 deletions

View File

@@ -39,8 +39,8 @@ class WpPlugins < WpItems
wp_plugins = WpPlugins.new(wp_target)
if headers
powered_by = headers['X-Powered-By']
wp_super_cache = headers['wp-super-cache']
powered_by = headers['X-Powered-By'].to_s
wp_super_cache = headers['wp-super-cache'].to_s
if matches = /W3 Total Cache\/([0-9.]+)/i.match(powered_by)
wp_plugins.add('w3-total-cache', version: matches[1])