Skip to content

Commit

Permalink
[plugin install] adding wp-super-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoeis committed Jul 3, 2016
1 parent b4f0f09 commit 32db357
Show file tree
Hide file tree
Showing 51 changed files with 36,190 additions and 1 deletion.
8 changes: 7 additions & 1 deletion wp-content/advanced-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ function wpcache_broken_message() {
if ( isset( $wp_cache_config_file ) == false )
return '';

if ( false == strpos( $_SERVER[ 'REQUEST_URI' ], 'wp-admin' ) )
$doing_ajax = defined( 'DOING_AJAX' ) && DOING_AJAX;
$xmlrpc_request = defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST;
$rest_request = defined( 'REST_REQUEST' ) && REST_REQUEST;

$skip_output = ( $doing_ajax || $xmlrpc_request || $rest_request );
if ( false == strpos( $_SERVER[ 'REQUEST_URI' ], 'wp-admin' ) && !$skip_output ) {
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. -->";
}
}

if ( false == defined( 'WPCACHEHOME' ) ) {
Expand Down
Loading

0 comments on commit 32db357

Please sign in to comment.