Merge branch 'pr/16301'

This commit is contained in:
Mike Jolley 2017-08-07 17:10:44 +01:00
commit e4fd620214
1 changed files with 2 additions and 3 deletions

View File

@ -156,9 +156,8 @@ class WC_Cache_Helper {
return; return;
} }
$page_ids = array_filter( array( wc_get_page_id( 'cart' ), wc_get_page_id( 'checkout' ), wc_get_page_id( 'myaccount' ) ) ); $page_ids = array_filter( array( wc_get_page_id( 'cart' ), wc_get_page_id( 'checkout' ), wc_get_page_id( 'myaccount' ) ) );
$current_page_id = get_queried_object_id();
if ( isset( $_GET['download_file'] ) || in_array( $current_page_id, $page_ids ) ) { if ( isset( $_GET['download_file'] ) || is_page( $page_ids ) ) {
self::nocache(); self::nocache();
} }
} }