Changeset 60827 for branches/5.9/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- Timestamp:
- 09/30/2025 05:02:58 PM (10 months ago)
- Location:
- branches/5.9
- 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/5.9
- Property svn:mergeinfo changed
/trunk merged: 60814-60816
- Property svn:mergeinfo changed
-
branches/5.9/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r52363 r60827 371 371 372 372 foreach ( $query_result as $post ) { 373 if ( ! $this->check_read_permission( $post ) ) { 373 if ( 'edit' === $request['context'] ) { 374 $permission = $this->check_update_permission( $post ); 375 } else { 376 $permission = $this->check_read_permission( $post ); 377 } 378 379 if ( ! $permission ) { 374 380 continue; 375 381 }
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)