Changeset 61936
- Timestamp:
- 03/11/2026 01:34:01 PM (2 days ago)
- Location:
- branches/6.9
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.9
-
branches/6.9/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r61297 r61936 559 559 ); 560 560 } 561 } 562 563 if ( $is_note && ! empty( $request['post'] ) && ! current_user_can( 'edit_post', (int) $request['post'] ) ) { 564 return new WP_Error( 565 'rest_cannot_create_note', 566 __( 'Sorry, you are not allowed to create notes for this post.' ), 567 array( 'status' => rest_authorization_required_code() ) 568 ); 561 569 } 562 570
Note: See TracChangeset
for help on using the changeset viewer.