Changeset 61089
- Timestamp:
- 10/30/2025 11:54:22 AM (7 weeks ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
src/wp-includes/comment.php (modified) (1 diff)
-
src/wp-includes/default-filters.php (modified) (1 diff)
-
tests/phpunit/tests/rest-api/rest-comments-controller.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r61036 r61089 4130 4130 ), 4131 4131 ), 4132 'auth_callback' => function ( $allowed, $meta_key, $object_id ) { 4133 return current_user_can( 'edit_comment', $object_id ); 4134 }, 4132 4135 ) 4133 4136 ); 4134 4137 } 4135 add_action( 'init', 'wp_create_initial_comment_meta' ); -
trunk/src/wp-includes/default-filters.php
r61088 r61089 152 152 add_action( 'updated_comment_meta', 'wp_cache_set_comments_last_changed' ); 153 153 add_action( 'deleted_comment_meta', 'wp_cache_set_comments_last_changed' ); 154 add_action( 'init', 'wp_create_initial_comment_meta' ); 154 155 155 156 // Places to balance tags on input. -
trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php
r60987 r61089 171 171 parent::set_up(); 172 172 $this->endpoint = new WP_REST_Comments_Controller(); 173 wp_create_initial_comment_meta(); 174 173 175 if ( is_multisite() ) { 174 176 update_site_option( 'site_admins', array( 'superadmin' ) ); … … 3889 3891 $response = rest_get_server()->dispatch( $request ); 3890 3892 $this->assertSame( 201, $response->get_status() ); 3893 3894 $data = $response->get_data(); 3895 $this->assertArrayHasKey( 'meta', $data ); 3896 $this->assertArrayHasKey( '_wp_note_status', $data['meta'] ); 3897 $this->assertSame( $status, $data['meta']['_wp_note_status'] ); 3891 3898 } 3892 3899
Note: See TracChangeset
for help on using the changeset viewer.