Changeset 53504 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 06/15/2022 10:18:02 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r53483 r53504 757 757 * @type bool $update_post_meta_cache Whether to update the post meta cache. Default true. 758 758 * @type bool $update_post_term_cache Whether to update the post term cache. Default true. 759 * @type bool $update_menu_item_cache Whether to update the menu item cache. Default false. 759 760 * @type bool $lazy_load_term_meta Whether to lazy-load term meta. Setting to false will 760 761 * disable cache priming for term meta, so that each … … 1872 1873 } 1873 1874 1875 if ( ! isset( $q['update_menu_item_cache'] ) ) { 1876 $q['update_menu_item_cache'] = false; 1877 } 1878 1874 1879 if ( ! isset( $q['lazy_load_term_meta'] ) ) { 1875 1880 $q['lazy_load_term_meta'] = $q['update_post_term_cache']; … … 3146 3151 /** @var WP_Post[] */ 3147 3152 $this->posts = array_map( 'get_post', $this->posts ); 3153 } 3154 3155 if ( ! empty( $this->posts ) && $q['update_menu_item_cache'] ) { 3156 update_menu_item_cache( $this->posts ); 3148 3157 } 3149 3158
Note: See TracChangeset
for help on using the changeset viewer.