Changeset 55671 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 04/21/2023 09:22:04 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/taxonomy.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r55526 r55671 1427 1427 } 1428 1428 1429 1430 /** 1431 * Queue term meta for lazy-loading. 1432 * 1433 * @since 6.3.0 1434 * 1435 * @param array $term_ids List of term IDs. 1436 */ 1437 function wp_lazyload_term_meta( array $term_ids ) { 1438 if ( empty( $term_ids ) ) { 1439 return; 1440 } 1441 $lazyloader = wp_metadata_lazyloader(); 1442 $lazyloader->queue_objects( 'term', $term_ids ); 1443 } 1444 1429 1445 /** 1430 1446 * Gets all meta data, including meta IDs, for the given term ID. … … 4004 4020 * @since 4.6.0 4005 4021 * @since 6.1.0 This function is no longer marked as "private". 4022 * @since 6.3.0 Use wp_lazyload_term_meta() for lazy-loading of term meta. 4006 4023 * 4007 4024 * @global wpdb $wpdb WordPress database abstraction object. … … 4018 4035 4019 4036 update_term_cache( $fresh_terms ); 4020 4021 if ( $update_meta_cache ) { 4022 update_termmeta_cache( $non_cached_ids );4023 }4037 } 4038 4039 if ( $update_meta_cache ) { 4040 wp_lazyload_term_meta( $term_ids ); 4024 4041 } 4025 4042 }
Note: See TracChangeset
for help on using the changeset viewer.