equal
deleted
inserted
replaced
1 <?php |
1 <?php |
2 # WP SUPER CACHE 0.8.9.1 |
2 # WP SUPER CACHE 1.2 |
3 function wpcache_broken_message() { |
3 function wpcache_broken_message() { |
4 if ( false == strpos( $_SERVER[ 'REQUEST_URI' ], 'wp-admin' ) ) |
4 if ( false == strpos( $_SERVER[ 'REQUEST_URI' ], 'wp-admin' ) ) |
5 echo "<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->"; |
5 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. -->"; |
6 } |
6 } |
7 |
7 |
8 if ( !include_once( 'CACHEHOME' . 'wp-cache-phase1.php' ) ) { |
8 if ( false == defined( 'WPCACHEHOME' ) ) { |
9 if ( !@is_file( 'CACHEHOME' . 'wp-cache-phase1.php' ) ) |
9 define( 'ADVANCEDCACHEPROBLEM', 1 ); |
10 register_shutdown_function( 'wpcache_broken_message' ); |
10 } elseif ( !include_once( WPCACHEHOME . 'wp-cache-phase1.php' ) ) { |
|
11 if ( !@is_file( WPCACHEHOME . 'wp-cache-phase1.php' ) ) { |
|
12 define( 'ADVANCEDCACHEPROBLEM', 1 ); |
|
13 } |
11 } |
14 } |
|
15 if ( defined( 'ADVANCEDCACHEPROBLEM' ) ) |
|
16 register_shutdown_function( 'wpcache_broken_message' ); |
12 ?> |
17 ?> |