芝麻web文件管理V1.00
编辑当前文件:/home/projzpbv/www/wp-content/plugins/calculated-fields-form/inc/cpcff_compatibility.inc.php
'Breeze - WordPress Cache Plugin', 'check' => 'BREEZE_VERSION', 'type' => 'constant', 'mssg' => __( 'There is active the
Breeze - WordPress Cache Plugin
plugin. If the forms are not visible, please tick the
"There is active an optimization plugin in WordPress"
and Purge the Breeze cache.', 'calculated-fields-form' ), ), array( 'plugin' => 'Fast Velocity Minify', 'check' => 'fvm_compat_checker', 'type' => 'function', 'mssg' => __( 'There is active the
Fast Velocity Minify
plugin. If the forms are not visible, please try disabling the
"Disable minification on JS files"
or
"Disable JavaScript processing"
options in the
Fast Velocity Minify
settings.', 'calculated-fields-form' ), ), array( 'plugin' => 'W3 Total Cache', 'check' => 'W3TC', 'type' => 'constant', 'mssg' => __( 'There is active the
W3 Total Cache
plugin. If the forms are not visible, please tick the checkbox.', 'calculated-fields-form' ), ), array( 'plugin' => 'Autoptimize', 'check' => 'autoptimize', 'type' => 'function', 'mssg' => __( 'There is active the
Autoptimize
plugin. If the forms are not visible, please try disabling the
"Force JavaScript in <head>"
option in the
Autoptimize
settings, or remove the jQuery file from the
"Exclude scripts from Autoptimize"
one.', 'calculated-fields-form' ), ), array( 'plugin' => 'LiteSpeed Cache', 'check' => 'run_litespeed_cache', 'type' => 'function', 'mssg' => __( 'There is active the
LiteSpeed Cache
plugin. If the forms are not visible, please try disabling the
"JS Combine"
option in the
Optimize
tab of
LiteSpeed Cache
settings.', 'calculated-fields-form' ), ), array( 'plugin' => 'WP Rocket', 'check' => 'WP_ROCKET_VERSION', 'type' => 'constant', 'mssg' => __( 'There is active the
WP Rocket
plugin. If the forms are not visible, please try disabling the
"Combine JavaScript files"
option in the
FILE OPTIMIZATION
tab of
WP Rocket
settings, and remember to clear the website cache.', 'calculated-fields-form' ), ), array( 'plugin' => 'SG Optimizer', 'check' => 'siteground_optimizer_loader', 'type' => 'object', 'mssg' => __( 'There is active the
SG Optimizer
plugin. If the forms are not visible, please, follows the steps below:
Go to the menu option: "SG Optimizer > Frontend"
Enter in the "JAVASCRIPT" tab
Select the jQuer path through the "Exclude from Deferral of Render-blocking JS"
Purge the "SG Cache"
If the issue persists, disable the options:
"Minify the HTML Output"
and
"Minify JavaScript Files"
in the
SG Optimizer
settings, and once more, to purge the website cache.', 'calculated-fields-form' ), ), array( 'plugin' => 'Hummingbird', 'check' => 'WPHB_VERSION', 'type' => 'constant', 'mssg' => __( 'There is active the
Hummingbird
plugin. If the forms are not visible, check the
"Hummingbird > Asset Optimization"
options. Make sure that jQuery or other required scripts are not configured to load after the page loads. Remember to purge the website cache, after edit the plugin settings.', 'calculated-fields-form' ), ), ); } // End init private static function format_warning_mssg( $plugin ) { // phpcs:ignore Squiz.Commenting.FunctionComment.Missing return '
' . $plugin['mssg'] . '
'; } // End format_warning_mssg public static function warnings() { // phpcs:ignore Squiz.Commenting.FunctionComment.Missing $plugins = self::init(); $warning_mssgs = ''; foreach ( $plugins as $plugin ) { switch ( $plugin['type'] ) { case 'function': if ( function_exists( $plugin['check'] ) ) { $warning_mssgs .= self::format_warning_mssg( $plugin ); } break; case 'class': if ( class_exists( $plugin['check'] ) ) { $warning_mssgs .= self::format_warning_mssg( $plugin ); } break; case 'object': if ( isset( $GLOBALS[ $plugin['check'] ] ) ) { $warning_mssgs .= self::format_warning_mssg( $plugin ); } break; case 'constant': if ( defined( $plugin['check'] ) ) { $warning_mssgs .= self::format_warning_mssg( $plugin ); } break; } } return $warning_mssgs; } // End blog_id } // End CPCFF_COMPATIBILITY }