Changeset 60819 for branches/6.7/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- Timestamp:
- 09/30/2025 04:59:37 PM (10 months ago)
- Location:
- branches/6.7
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.7
- Property svn:mergeinfo changed
/trunk merged: 60814-60816
- Property svn:mergeinfo changed
-
branches/6.7/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r59744 r60819 445 445 446 446 foreach ( $query_result as $post ) { 447 if ( ! $this->check_read_permission( $post ) ) { 447 if ( 'edit' === $request['context'] ) { 448 $permission = $this->check_update_permission( $post ); 449 } else { 450 $permission = $this->check_read_permission( $post ); 451 } 452 453 if ( ! $permission ) { 448 454 continue; 449 455 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)