Changeset 60833 for branches/5.3/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- Timestamp:
- 09/30/2025 05:04:46 PM (10 months ago)
- Location:
- branches/5.3
- 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.3
- Property svn:mergeinfo changed
/trunk merged: 60814-60816
- Property svn:mergeinfo changed
-
branches/5.3/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r50728 r60833 346 346 347 347 foreach ( $query_result as $post ) { 348 if ( ! $this->check_read_permission( $post ) ) { 348 if ( 'edit' === $request['context'] ) { 349 $permission = $this->check_update_permission( $post ); 350 } else { 351 $permission = $this->check_read_permission( $post ); 352 } 353 354 if ( ! $permission ) { 349 355 continue; 350 356 }
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)