Changeset 60826 for branches/6.0/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- Timestamp:
- 09/30/2025 05:02:22 PM (12 months ago)
- Location:
- branches/6.0
- 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.0
- Property svn:mergeinfo changed
/trunk merged: 60814-60816
- Property svn:mergeinfo changed
-
branches/6.0/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r52363 r60826 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)