mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Editor: Cast theme.json values to string on theme export.
Props glendaviesnz. See #56684. git-svn-id: https://develop.svn.wordpress.org/trunk@54363 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1fe666f574
commit
62360f5f4b
@ -2841,7 +2841,7 @@ class WP_Theme_JSON {
|
||||
}
|
||||
$flattened_preset = array();
|
||||
foreach ( $items as $slug => $value ) {
|
||||
$flattened_preset[] = array_merge( array( 'slug' => $slug ), $value );
|
||||
$flattened_preset[] = array_merge( array( 'slug' => (string) $slug ), $value );
|
||||
}
|
||||
_wp_array_set( $output, $path, $flattened_preset );
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user