PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
← All changes | minify/class-wp-optimize-detect-minify-plugins.php +3 -1 3.2.22 → 4.7.0 View file →
@@ -50,8 +50,9 @@
50 50
51 51 /**
52 52 * Check if minify feature is active
53 53 *
54 + * @param string $plugin_slug Slug of the plugin
54 55 * @return bool
55 56 */
56 57 public function is_minify_active($plugin_slug) {
57 58 switch ($plugin_slug) {
@@ -57,12 +58,13 @@
57 58 switch ($plugin_slug) {
58 59 case 'w3-total-cache':
59 60 return (function_exists('w3tc_config') && w3tc_config()->get_boolean('minify.enabled'));
60 61 case 'autoptimize':
61 - return ('on' == get_option('autoptimize_js', false) || 'on' == get_option('autoptimize_css', false) || 'on' == get_option('autoptimize_html', false));
62 + return ('on' === get_option('autoptimize_js', false) || 'on' === get_option('autoptimize_css', false) || 'on' === get_option('autoptimize_html', false));
62 63 case 'fast-velocity-minify':
63 64 return true;
64 65 }
66 + return false;
65 67 }
66 68
67 69 /**
68 70 * Instance of WP_Optimize_Detect_Minify_Plugins.