wp/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
--- 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 ) {