Skip to content

Commit a5e9de4

Browse files
committed
Rename post meta post query flushing function.
1 parent 2f706cf commit a5e9de4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/wp-includes/default-filters.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@
122122
}
123123

124124
// Post meta.
125-
add_action( 'added_post_meta', 'wp_cache_set_needs_meta_query_flush', 10, 3 );
126-
add_action( 'updated_post_meta', 'wp_cache_set_needs_meta_query_flush', 10, 3 );
127-
add_action( 'deleted_post_meta', 'wp_cache_set_needs_meta_query_flush', 10, 3 );
125+
add_action( 'added_post_meta', 'wp_cache_maybe_set_posts_last_changed_following_post_meta_update', 10, 3 );
126+
add_action( 'updated_post_meta', 'wp_cache_maybe_set_posts_last_changed_following_post_meta_update', 10, 3 );
127+
add_action( 'deleted_post_meta', 'wp_cache_maybe_set_posts_last_changed_following_post_meta_update', 10, 3 );
128128
add_action( 'init', 'wp_create_initial_post_meta' );
129129

130130
// User meta.

src/wp-includes/post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8465,7 +8465,7 @@ function wp_cache_set_posts_last_changed() {
84658465
* @param int $object_id Object ID for which the meta was updated.
84668466
* @param string $meta_key Meta key that was updated.
84678467
*/
8468-
function wp_cache_set_needs_meta_query_flush( $meta_ids, $object_id, $meta_key ) {
8468+
function wp_cache_maybe_set_posts_last_changed_following_post_meta_update( $meta_ids, $object_id, $meta_key ) {
84698469
$post_type = get_post_type( $object_id );
84708470
$registered_meta_keys = array_merge(
84718471
get_registered_meta_keys( 'post' ),

0 commit comments

Comments
 (0)