diff -r 48c4eec2b7e6 -r 8c2e4d02f4ef wp/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php --- a/wp/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php Fri Sep 05 18:40:08 2025 +0200 +++ b/wp/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php Fri Sep 05 18:52:52 2025 +0200 @@ -113,7 +113,7 @@ $statuses = get_post_stati( array( 'internal' => false ), 'object' ); $statuses['trash'] = get_post_status_object( 'trash' ); - foreach ( $statuses as $slug => $obj ) { + foreach ( $statuses as $obj ) { $ret = $this->check_read_permission( $obj ); if ( ! $ret ) {