Make WordPress Core

Changeset 58265


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

Fix indentation and whitespace in WP_Theme_JSON and WP_Theme_JSON_Resolver

Props mukesh27.
Follows r58264.
See #61312.

Location:
trunk/src/wp-includes
Files:
2 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     */
  • trunk/src/wp-includes/class-wp-theme-json.php

    r58264 r58265  
    307307     */
    308308    const INDIRECT_PROPERTIES_METADATA = array(
    309         'gap'        => array(
     309        'gap'              => array(
    310310            array( 'spacing', 'blockGap' ),
    311311        ),
    312         'column-gap' => array(
     312        'column-gap'       => array(
    313313            array( 'spacing', 'blockGap', 'left' ),
    314314        ),
    315         'row-gap'    => array(
     315        'row-gap'          => array(
    316316            array( 'spacing', 'blockGap', 'top' ),
    317317        ),
    318         'max-width'  => array(
     318        'max-width'        => array(
    319319            array( 'layout', 'contentSize' ),
    320320            array( 'layout', 'wideSize' ),
     
    12231223     * @param string[] $origins A list of origins to include. By default it includes VALID_ORIGINS.
    12241224     * @param array    $options An array of options for now used for internal purposes only (may change without notice).
    1225      *                       The options currently supported are:
    1226      *                       - 'scope' that makes sure all style are scoped to a given selector
    1227      *                       - `root_selector` which overwrites and forces a given selector to be used on the root node
    1228      *                       - `skip_root_layout_styles` which omits root layout styles from the generated stylesheet.
     1225     *                          The options currently supported are:
     1226     *                          - 'scope' that makes sure all style are scoped to a given selector
     1227     *                          - `root_selector` which overwrites and forces a given selector to be used on the root node
     1228     *                          - `skip_root_layout_styles` which omits root layout styles from the generated stylesheet.
    12291229     * @return string The resulting stylesheet.
    12301230     */
Note: See TracChangeset for help on using the changeset viewer.