'enable_cache', 'id' => $blog_id ) ), 'wp-cache' . $blog_id ) . '">' . __( 'Enable', 'wp-super-cache' ) . ''; } else { echo '' . __( 'Disable', 'wp-super-cache' ) . ''; } } function wp_super_cache_multisite_notice() { if ( 'wpsupercache' === filter_input( INPUT_GET, 'page' ) ) { echo '

' . __( 'Caching has been disabled on this blog on the Network Admin Sites page.', 'wp-super-cache' ) . '

'; } } function wp_super_cache_override_on_flag() { global $cache_enabled, $super_cache_enabled; if ( true !== $cache_enabled ) { return false; } if ( 1 === (int) get_option( 'wp_super_cache_disabled' ) ) { $cache_enabled = false; $super_cache_enabled = false; if ( ! defined( 'DONOTCACHEPAGE' ) ) { define( 'DONOTCACHEPAGE', 1 ); } if ( ! defined( 'SUBMITDISABLED' ) ) { define( 'SUBMITDISABLED', 'disabled style="color: #aaa" ' ); } if ( is_admin() ) { add_action( 'admin_notices', 'wp_super_cache_multisite_notice' ); } } }