notice eliminating

This commit is contained in:
Peter Molnar 2013-06-25 17:27:23 +01:00
parent 5b5bf7fbdc
commit 879425e38e

View file

@ -243,12 +243,14 @@ function wp_ffpc_callback( $buffer ) {
else
$meta['type'] = 'unknown';
/* check if caching is disabled for page type */
$nocache_key = 'nocache_'. $meta['type'];
if ( $meta['type'] != 'unknown' ) {
/* check if caching is disabled for page type */
$nocache_key = 'nocache_'. $meta['type'];
/* don't cache if prevented by rule */
if ( $wp_ffpc_config[ $nocache_key ] == 1 ) {
return $buffer;
/* don't cache if prevented by rule */
if ( $wp_ffpc_config[ $nocache_key ] == 1 ) {
return $buffer;
}
}
if ( is_404() )