Changeset 48243 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 07/01/2020 06:06:39 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r48226 r48243 686 686 $context = array(); 687 687 688 if ( ! empty( $post )) {688 if ( $post instanceof WP_Post ) { 689 689 $context['postId'] = $post->ID; 690 690 … … 698 698 } 699 699 700 if ( isset( $wp_query->tax_query->queried_terms['category'] ) ) {700 if ( $wp_query instanceof WP_Query && isset( $wp_query->tax_query->queried_terms['category'] ) ) { 701 701 $context['query'] = array( 'categoryIds' => array() ); 702 702 foreach ( $wp_query->tax_query->queried_terms['category']['terms'] as $category_slug_or_id ) {
Note: See TracChangeset
for help on using the changeset viewer.