Editor: Cast theme.json values to string on theme export.

Props glendaviesnz.
See #56684.
Built from https://develop.svn.wordpress.org/trunk@54363


git-svn-id: http://core.svn.wordpress.org/trunk@53922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
davidbaumwald 2022-09-30 14:48:12 +00:00
parent 35fb05f30d
commit 9b493706ef
2 changed files with 2 additions and 2 deletions

View File

@ -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 );
}

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.1-beta2-54362';
$wp_version = '6.1-beta2-54363';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.