Make WordPress Core

Changeset 52323


Ignore:
Timestamp:
12/05/2021 06:01:00 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing summary for WP_Theme_JSON_Resolver::get_merged_data().

Follow-up to [50959].

See #53399.

File:
1 edited

Legend:

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

    r52321 r52323  
    179179
    180180                /*
    181                 * We want the presets and settings declared in theme.json
    182                 * to override the ones declared via theme supports.
    183                 * So we take theme supports, transform it to theme.json shape
    184                 * and merge the self::$theme upon that.
    185                 */
     181                 * We want the presets and settings declared in theme.json
     182                 * to override the ones declared via theme supports.
     183                 * So we take theme supports, transform it to theme.json shape
     184                 * and merge the self::$theme upon that.
     185                 */
    186186                $theme_support_data = WP_Theme_JSON::get_from_editor_settings( get_default_block_editor_settings() );
    187187                if ( ! self::theme_has_support() ) {
     
    316316                        }
    317317
    318                         // Very important to verify if the flag isGlobalStylesUserThemeJSON is true.
    319                         // If is not true the content was not escaped and is not safe.
     318                        // Very important to verify that the flag isGlobalStylesUserThemeJSON is true.
     319                        // If it's not true then the content was not escaped and is not safe.
    320320                        if (
    321321                                is_array( $decoded_data ) &&
     
    333333
    334334        /**
     335         * Returns the data merged from multiple origins.
     336         *
    335337         * There are three sources of data (origins) for a site:
    336338         * default, theme, and custom. The custom's has higher priority
Note: See TracChangeset for help on using the changeset viewer.