Changeset 60830 for branches/5.6/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- Timestamp:
- 09/30/2025 05:03:34 PM (11 months ago)
- Location:
- branches/5.6
- 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.6
- Property svn:mergeinfo changed
/trunk merged: 60814-60816
- Property svn:mergeinfo changed
-
branches/5.6/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r50726 r60830 362 362 363 363 foreach ( $query_result as $post ) { 364 if ( ! $this->check_read_permission( $post ) ) { 364 if ( 'edit' === $request['context'] ) { 365 $permission = $this->check_update_permission( $post ); 366 } else { 367 $permission = $this->check_read_permission( $post ); 368 } 369 370 if ( ! $permission ) { 365 371 continue; 366 372 }
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)