芝麻web文件管理V1.00
编辑当前文件:/home4/randall/public_html/aots.org.py/wp-content/plugins/wp-super-cache/inc/boost.php
wp_nonce_url( admin_url( 'update.php?action=install-plugin&plugin=jetpack-boost' ), 'install-plugin_jetpack-boost' ), 'activate_url' => admin_url( 'plugins.php' ), 'is_installed' => wpsc_is_boost_installed(), ); } /** * Display an admin notice to install Jetpack Boost. */ function wpsc_jetpack_boost_notice() { if ( ! isset( $_GET['page'] ) || $_GET['page'] !== 'wpsupercache' ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended return; } // hide the admin notice if Jetpack Boost Cache is already used. if ( 'BOOST' === wpsc_identify_advanced_cache() ) { return; } // Don't show the banner if the banner has been dismissed. $is_dismissed = '1' === get_user_option( 'wpsc_dismissed_boost_admin_notice' ); if ( $is_dismissed ) { return; } // Don't show the admin notice if Jetpack Boost is too old. if ( ! wpsc_is_boost_current() ) { return; } // Don't show the banner if Super Cache is using features that Boost doesn't support. if ( ! wpsc_is_boost_compatible() ) { return; } $config = wpsc_get_boost_migration_config(); $button_url = $config['is_installed'] ? $config['activate_url'] : $config['install_url']; $button_class = $config['is_installed'] ? 'wpsc-activate-boost-button' : 'wpsc-install-boost-button'; ?>
' . esc_html__( 'Boost Settings', 'wp-super-cache' ) . '' ); ?>
=' ); } else { return true; // don't care if Boost is not installed } }