Skip to content

Commit c2fc10c

Browse files
Hook meta setup on rest_api_init to ensure called for tests
1 parent f52eedb commit c2fc10c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4135,4 +4135,4 @@ function wp_create_initial_comment_meta() {
41354135
)
41364136
);
41374137
}
4138-
add_action( 'init', 'wp_create_initial_comment_meta' );
4138+
add_action( 'rest_api_init', 'wp_create_initial_comment_meta' );

0 commit comments

Comments
 (0)