Changeset 58694
- Timestamp:
- 07/09/2024 01:51:12 PM (4 weeks ago)
- Location:
- trunk/src/wp-includes/rest-api
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r58612 r58694 1208 1208 } 1209 1209 1210 list( $type, $attr_parts ) = explode( ';', $value, 2 );1210 list( , $attr_parts ) = explode( ';', $value, 2 ); 1211 1211 1212 1212 $attr_parts = explode( ';', $attr_parts ); -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php
r57771 r58694 142 142 } 143 143 144 foreach ( $block_types as $ slug => $obj ) {144 foreach ( $block_types as $obj ) { 145 145 if ( $namespace ) { 146 146 list ( $block_namespace ) = explode( '/', $obj->name ); -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php
r56586 r58694 114 114 $statuses['trash'] = get_post_status_object( 'trash' ); 115 115 116 foreach ( $statuses as $ slug => $obj ) {116 foreach ( $statuses as $obj ) { 117 117 $ret = $this->check_read_permission( $obj ); 118 118 -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
r58408 r58694 202 202 $status = $request['status']; 203 203 204 foreach ( $active_themes as $theme _name => $theme) {204 foreach ( $active_themes as $theme ) { 205 205 $theme_status = ( $this->is_same_theme( $theme, $current_theme ) ) ? 'active' : 'inactive'; 206 206 if ( is_array( $status ) && ! in_array( $theme_status, $status, true ) ) { -
trunk/src/wp-includes/rest-api/search/class-wp-rest-post-format-search-handler.php
r57643 r58694 62 62 63 63 $found_ids = array(); 64 foreach ( $format_slugs as $ index => $format_slug ) {64 foreach ( $format_slugs as $format_slug ) { 65 65 if ( ! empty( $query_args['search'] ) ) { 66 66 $format_string = get_post_format_string( $format_slug );
Note: See TracChangeset
for help on using the changeset viewer.