Make WordPress Core


Ignore:
Timestamp:
12/09/2024 02:53:35 AM (2 months ago)
Author:
isabel_brison
Message:

Editor: Update docblocks for wp_get_global_stylesheet and WP_Theme_JSON::get_stylesheet.

Updates docblocks to account for new use of the custom-css string in their $types parameters and adds information to deprecation of wp_get_global_styles_custom_css.

Props justlevine, isabel_brison, ramonopoly.
Fixes #62665.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/global-styles-and-settings.php

    r59256 r59499  
    143143 *
    144144 * @param array $types Optional. Types of styles to load.
    145  *                     It accepts as values 'variables', 'presets', 'styles', 'base-layout-styles'.
     145 *                     See {@see 'WP_Theme_JSON::get_stylesheet'} for all valid types.
    146146 *                     If empty, it'll load the following:
    147147 *                     - for themes without theme.json: 'variables', 'presets', 'base-layout-styles'.
Note: See TracChangeset for help on using the changeset viewer.