diff --git a/wp-cache.php b/wp-cache.php index 8acb3eab..0347b524 100644 --- a/wp-cache.php +++ b/wp-cache.php @@ -237,7 +237,7 @@ function wp_cache_manager_error_checks() { return false; if ( version_compare( PHP_VERSION, '5.3.0', '<' ) && ( 1 == ini_get( 'safe_mode' ) || "on" == strtolower( ini_get( 'safe_mode' ) ) ) ) { - echo '

' . __( 'Warning! PHP Safe Mode Enabled!', 'wp-super-cache' ) . '

' . + echo '

' . __( 'Warning! PHP Safe Mode Enabled!', 'wp-super-cache' ) . '

' . __( 'You may experience problems running this plugin because SAFE MODE is enabled.', 'wp-super-cache' ) . '
'; @@ -251,7 +251,7 @@ function wp_cache_manager_error_checks() { } if ( '' == get_option( 'permalink_structure' ) ) { - echo '

' . __( 'Permlink Structure Error', 'wp-super-cache' ) . '

'; + echo '

' . __( 'Permlink Structure Error', 'wp-super-cache' ) . '

'; echo "

" . __( 'A custom url or permalink structure is required for this plugin to work correctly. Please go to the Permalinks Options Page to configure your permalinks.', 'wp-super-cache' ) . "

"; echo '
'; return false; @@ -260,7 +260,7 @@ function wp_cache_manager_error_checks() { if ( $wp_cache_debug || ! $wp_cache_cron_check ) { if ( defined( 'DISABLE_WP_CRON' ) && constant( 'DISABLE_WP_CRON' ) ) { ?> -

+

+ ?>

Troubleshooting section of the readme.txt', 'wp-super-cache' ), 'https://wordpress.org/plugins/wp-super-cache/faq/' ); ?>

@@ -284,7 +284,7 @@ function wp_cache_manager_error_checks() { $cron = wp_remote_get($cron_url, array('timeout' => 0.01, 'blocking' => true)); if( is_array( $cron ) ) { if( $cron[ 'response' ][ 'code' ] == '404' ) { - ?>

Warning! wp-cron.php not found!

+ ?>

Warning! wp-cron.php not found!

Troubleshooting section of the readme.txt', 'wp-super-cache' ), 'https://wordpress.org/plugins/wp-super-cache/faq/' ); ?>

@@ -315,7 +315,7 @@ function wp_cache_manager_error_checks() { } if ( 1 == ini_get( 'zlib.output_compression' ) || "on" == strtolower( ini_get( 'zlib.output_compression' ) ) ) { - ?>

+ ?>

this page for instructions on modifying your php.ini.', 'wp-super-cache' ); ?>

+ ?>

+ ?>

%s/wp-cache-config.php and cannot be modified. That file must be writeable by the web server to make any changes.', 'wp-super-cache' ), WP_CONTENT_DIR ); ?>

This page explains how to change file permissions.', 'wp-super-cache' ); ?>

@@ -356,7 +356,7 @@ function wp_cache_manager_error_checks() { $gc_flag = get_gc_flag(); if ( $dismiss_gc_warning == 0 ) { if ( false == maybe_stop_gc( $gc_flag ) && false == wp_next_scheduled( 'wp_cache_gc' ) ) { - ?>

+ ?>

this form to enable it.', 'wp-super-cache' ); ?>

@@ -383,7 +383,7 @@ function wp_cache_manager_error_checks() { $wp_content_stat = stat(WP_CONTENT_DIR . '/'); $wp_content_mode = decoct( $wp_content_stat[ 'mode' ] & 0777 ); if( substr( $wp_content_mode, -2 ) == '77' ) { - ?>

+ ?>

chmod 755 /

This page explains how to change file permissions.', 'wp-super-cache' ); ?>

@@ -406,14 +406,14 @@ function wp_cache_manager_error_checks() { } $scrules = implode( "\n", extract_from_markers( $home_path.'.htaccess', 'WPSuperCache' ) ); if ( $cache_enabled && $wp_cache_mod_rewrite && !$wp_cache_mobile_enabled && strpos( $scrules, addcslashes( str_replace( ', ', '|', $wp_cache_mobile_browsers ), ' ' ) ) ) { - echo '

' . __( 'Mobile rewrite rules detected', 'wp-super-cache' ) . "

"; + echo '

' . __( 'Mobile rewrite rules detected', 'wp-super-cache' ) . "

"; echo "

" . __( 'For best performance you should enable "Mobile device support" or delete the mobile rewrite rules in your .htaccess. Look for the 2 lines with the text "2.0\ MMP|240x320" and delete those.', 'wp-super-cache' ) . "

" . __( 'This will have no affect on ordinary users but mobile users will see uncached pages.', 'wp-super-cache' ) . "

"; } elseif ( $wp_cache_mod_rewrite && $cache_enabled && $wp_cache_mobile_enabled && $scrules != '' && ( ( '' != $wp_cache_mobile_prefixes && false === strpos( $scrules, addcslashes( str_replace( ', ', '|', $wp_cache_mobile_prefixes ), ' ' ) ) ) || ( '' != $wp_cache_mobile_browsers && false === strpos( $scrules, addcslashes( str_replace( ', ', '|', $wp_cache_mobile_browsers ), ' ' ) ) ) ) ) { ?> -

+

  1. @@ -424,7 +424,7 @@ function wp_cache_manager_error_checks() { } if ( $cache_enabled && $super_cache_enabled && $wp_cache_mod_rewrite && $scrules == '' ) { - ?>

    + ?>

    Update Mod_Rewrite Rules button.', 'wp-super-cache' ); ?>

    + ?>

    "; foreach( $missing_mods as $req => $desc ) { @@ -459,7 +459,7 @@ function wp_cache_manager_error_checks() { if ( isset( $disable_supercache_htaccess_warning ) == false ) $disable_supercache_htaccess_warning = false; if ( ! $is_nginx && $dismiss_htaccess_warning == 0 && $wp_cache_mod_rewrite && $super_cache_enabled && $disable_supercache_htaccess_warning == false && get_option( 'siteurl' ) != get_option( 'home' ) ) { - ?>

    + ?>

    here. Unfortunately, WordPress writes to the .htaccess in the install directory, not where your site is served from.
    When you update the rewrite rules in this plugin you will have to copy the file to where your site is hosted. This will be fixed in the future.', 'wp-super-cache' ); ?>

    @@ -828,17 +828,17 @@ function toggleLayer( whichLayer ) { // --> //Clicking header opens fieldset options jQuery(document).ready(function(){ - jQuery("fieldset h3").css("cursor","pointer").click(function(){ + jQuery("fieldset h4").css("cursor","pointer").click(function(){ jQuery(this).parent("fieldset").find("p,form,ul,blockquote").toggle("slow"); }); });