Correct property #5041

This commit is contained in:
Mike Jolley 2014-03-18 11:18:35 +00:00
parent 985cef955a
commit 7da02708ce
1 changed files with 2 additions and 2 deletions

View File

@ -344,8 +344,8 @@ function wc_delete_shop_order_transients( $post_id = 0 ) {
if ( wp_using_ext_object_cache() ) {
global $wp_object_cache;
if ( isset( $wp_object_cache['transient'] ) ) {
$keys = array_keys( $wp_object_cache['transient'] );
if ( isset( $wp_object_cache->cache['transient'] ) ) {
$keys = array_keys( $wp_object_cache->cache['transient'] );
foreach ( $keys as $key ) {
if ( 'wc_report_' === substr( $key, 0, 10 ) ) {
$transients_to_clear[] = $key;