WordPress.org

Plugin Directory

Changeset 803002


Ignore:
Timestamp:
11/12/13 09:55:34 (5 months ago)
Author:
donncha
Message:

Don't show the "advanced-cache.php warning" when the plugin isn't loaded, props RobertHarm, http://wordpress.org/support/topic/wp-super-cache-breaks-leaflet-maps-marker-plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-super-cache/trunk/advanced-cache.php

    r556196 r803002  
    22# WP SUPER CACHE 1.2 
    33function wpcache_broken_message() { 
     4    global $wp_cache_config_file; 
     5    if ( isset( $wp_cache_config_file ) == false ) 
     6        return ''; 
     7 
    48    if ( false == strpos( $_SERVER[ 'REQUEST_URI' ], 'wp-admin' ) ) 
    59        echo "<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->"; 
Note: See TracChangeset for help on using the changeset viewer.