Merge pull request #6591 from SiR-DanieL/patch-1
Avoid notice errors with W3 Total Cache
This commit is contained in:
commit
bb7f5800f5
|
@ -135,7 +135,7 @@ class WC_Cache_Helper {
|
|||
|
||||
$config = w3_instance('W3_Config');
|
||||
$enabled = $config->get_integer( 'dbcache.enabled' );
|
||||
$settings = $config->get_array( 'dbcache.reject.sql' );
|
||||
$settings = array_map( 'trim', $config->get_array( 'dbcache.reject.sql' ) );
|
||||
|
||||
if ( $enabled && ! in_array( '_wc_session_', $settings ) ) {
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue