Changeset 54398
- Timestamp:
- 10/06/2022 03:25:47 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json.php
r54385 r54398 2423 2423 2424 2424 $slugs_for_preset = array(); 2425 $slugs_for_preset = array_map(2426 static function( $value) {2427 return isset( $value['slug'] ) ? $value['slug'] : null;2428 } ,2429 $preset2430 ); 2425 foreach ( $preset as $item ) { 2426 if ( isset( $item['slug'] ) ) { 2427 $slugs_for_preset[] = $item['slug']; 2428 } 2429 } 2430 2431 2431 _wp_array_set( $slugs, $metadata['path'], $slugs_for_preset ); 2432 2432 }
Note: See TracChangeset
for help on using the changeset viewer.