We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40103f7 commit 27bd29dCopy full SHA for 27bd29d
tests/phpunit/tests/rest-api/rest-comments-controller.php
@@ -173,6 +173,23 @@ public function set_up() {
173
if ( is_multisite() ) {
174
update_site_option( 'site_admins', array( 'superadmin' ) );
175
}
176
+ // Ensure note resolution meta is registered.
177
+ register_meta(
178
+ 'comment',
179
+ '_wp_note_status',
180
+ array(
181
+ 'type' => 'string',
182
+ 'description' => __( 'Note resolution status' ),
183
+ 'single' => true,
184
+ 'show_in_rest' => array(
185
+ 'schema' => array(
186
187
+ 'enum' => array( 'resolved', 'reopen' ),
188
+ ),
189
190
+ )
191
+ );
192
+
193
194
195
public function test_register_routes() {
0 commit comments