diff --git a/wp-cache.php b/wp-cache.php index e5ffa9fd..a585caa1 100644 --- a/wp-cache.php +++ b/wp-cache.php @@ -618,8 +618,7 @@ function wp_cache_manager_error_checks() { $dismiss_readable_warning = 0; } if( $dismiss_readable_warning == 0 && is_writeable_ACLSafe( WP_CONTENT_DIR . '/' ) ) { - $wp_content_stat = stat(WP_CONTENT_DIR . '/'); - $wp_content_mode = decoct( $wp_content_stat[ 'mode' ] & 0777 ); + $wp_content_mode = decoct( fileperms( WP_CONTENT_DIR . '/' ) & 0777 ); if( substr( $wp_content_mode, -2 ) == '77' ) { ?>

chmod 755 /

@@ -669,13 +668,23 @@ function wp_cache_manager_error_checks() { ) ) { ?> -

-

- -

  1. +

    +

    +

    +
    1. Update Mod_Rewrite Rules button.', 'wp-super-cache' ); ?>
    2. -
    3. # BEGIN WPSuperCache and # END WPSuperCache and let the plugin regenerate them by reloading this page.', 'wp-super-cache' ), $home_path ); ?>
    4. -
    5. # BEGIN WPSuperCache and # END WPSuperCache. There are two sections that look very similar. Just below the line %%{HTTP:Cookie} !^.*(comment_author_|%s|wp-postpass_).*$ add these lines: (do it twice, once for each section)', 'wp-super-cache' ), $home_path, wpsc_get_logged_in_cookie() ); ?>

      +
    6. + # BEGIN WPSuperCache and # END WPSuperCache and let the plugin regenerate them by reloading this page.', 'wp-super-cache' ), array( 'code' => array() ) ), esc_html( $home_path ) ); + ?> +
    7. +
    8. + # BEGIN WPSuperCache and # END WPSuperCache. There are two sections that look very similar. Just below the line %%{HTTP:Cookie} !^.*(comment_author_|%2$s|wp-postpass_).*$ add these lines: (do it twice, once for each section)', 'wp-super-cache' ), array( 'code' => array() ) ), esc_html( $home_path ), esc_html( wpsc_get_logged_in_cookie() ) ); + ?> +