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:
@@ -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 );
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user