Make WordPress Core


Ignore:
Timestamp:
06/04/2024 11:53:37 AM (2 years ago)
Author:
ellatrix
Message:

Editor: Add theme.json v3 migrations.

See https://github.com/WordPress/wordpress-develop/pull/6616.
See also the original Gutenberg PRs:

Fixes #61282.

Props ajlende, talldanwp, ramonopoly, ellatrix.

File:
1 edited

Legend:

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

    r58185 r58328  
    4040         * @param string $origin The origin of the data: default, theme, user.
    4141         */
    42         public function __construct( $data = array(), $origin = 'theme' ) {
     42        public function __construct( $data = array( 'version' => WP_Theme_JSON::LATEST_SCHEMA ), $origin = 'theme' ) {
    4343                $this->origin     = $origin;
    4444                $this->theme_json = new WP_Theme_JSON( $data, $this->origin );
Note: See TracChangeset for help on using the changeset viewer.