Make WordPress Core

Changeset 54363


Ignore:
Timestamp:
09/30/2022 02:46:25 PM (2 years ago)
Author:
davidbaumwald
Message:

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

Props glendaviesnz.
See #56684.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme-json.php

    r54362 r54363  
    28422842                $flattened_preset = array();
    28432843                foreach ( $items as $slug => $value ) {
    2844                     $flattened_preset[] = array_merge( array( 'slug' => $slug ), $value );
     2844                    $flattened_preset[] = array_merge( array( 'slug' => (string) $slug ), $value );
    28452845                }
    28462846                _wp_array_set( $output, $path, $flattened_preset );
Note: See TracChangeset for help on using the changeset viewer.