Make WordPress Core


Ignore:
Timestamp:
05/31/2024 05:59:14 AM (2 years ago)
Author:
noisysocks
Message:

Fix indentation and whitespace in WP_Theme_JSON and WP_Theme_JSON_Resolver

Props mukesh27.
Follows r58264.
See #61312.

File:
1 edited

Legend:

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

    r58264 r58265  
    254254                         * @param WP_Theme_JSON_Data $theme_json Class to access and update the underlying data.
    255255                         */
    256                         $theme_json      = apply_filters( 'wp_theme_json_data_theme', new WP_Theme_JSON_Data( $theme_json_data, 'theme' ) );
    257                         static::$theme   = $theme_json->get_theme_json();
     256                        $theme_json    = apply_filters( 'wp_theme_json_data_theme', new WP_Theme_JSON_Data( $theme_json_data, 'theme' ) );
     257                        static::$theme = $theme_json->get_theme_json();
    258258
    259259                        if ( $wp_theme->parent() ) {
    … …  
    385385                 * @param WP_Theme_JSON_Data $theme_json Class to access and update the underlying data.
    386386                 */
    387                 $theme_json = apply_filters( 'wp_theme_json_data_blocks', new WP_Theme_JSON_Data( $config, 'blocks' ) );
     387                $theme_json     = apply_filters( 'wp_theme_json_data_blocks', new WP_Theme_JSON_Data( $config, 'blocks' ) );
    388388                static::$blocks = $theme_json->get_theme_json();
    389389                return static::$blocks;
    … …  
    713713         * @param array  $variation Theme.json shaped style variation object.
    714714         * @param string $scope     Scope to check e.g. theme, block etc.
    715          *
    716715         * @return boolean
    717716         */
    … …  
    738737         *
    739738         * @param string $scope The scope or type of style variation to retrieve e.g. theme, block etc.
    740          *
    741739         * @return array
    742740         */
Note: See TracChangeset for help on using the changeset viewer.