Skip to content

Commit 2d9dbe5

Browse files
committed
Move post meta rego to match comment meta rego location.
1 parent d0097e4 commit 2d9dbe5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/wp-includes/default-filters.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
add_action( 'added_post_meta', 'wp_cache_set_needs_meta_query_flush', 10, 3 );
126126
add_action( 'updated_post_meta', 'wp_cache_set_needs_meta_query_flush', 10, 3 );
127127
add_action( 'deleted_post_meta', 'wp_cache_set_needs_meta_query_flush', 10, 3 );
128+
add_action( 'init', 'wp_create_initial_post_meta' );
128129

129130
// User meta.
130131
add_action( 'added_user_meta', 'wp_cache_set_users_last_changed' );
@@ -769,9 +770,6 @@
769770
// User preferences.
770771
add_action( 'init', 'wp_register_persisted_preferences_meta' );
771772

772-
// CPT wp_block custom postmeta field.
773-
add_action( 'init', 'wp_create_initial_post_meta' );
774-
775773
// Include revisioned meta when considering whether a post revision has changed.
776774
add_filter( 'wp_save_post_revision_post_has_changed', 'wp_check_revisioned_meta_fields_have_changed', 10, 3 );
777775

0 commit comments

Comments
 (0)