Make WordPress Core

Changeset 58266

Timestamp:
05/31/2024 09:38:22 AM (2 months ago)
Author:
swissspidy
Message:

Docs: Improve docblock for WP_Theme_JSON::get_stylesheet().

See #60699.

File:
1 edited

Legend:

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

    r58265 r58266  
    12221222     *                          - `presets`: only the classes for the presets.
    12231223     * @param string[] $origins A list of origins to include. By default it includes VALID_ORIGINS.
    1224      * @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.
     1224     * @param array    $options {
     1225     *     Optional. An array of options for now used for internal purposes only (may change without notice).
     1226     *
     1227     *     @type string $scope                   Makes sure all style are scoped to a given selector
     1228     *     @type string $root_selector           Overwrites and forces a given selector to be used on the root node
     1229     *     @type bool   $skip_root_layout_styles Omits root layout styles from the generated stylesheet. Default false.
     1230     * }
    12291231     * @return string The resulting stylesheet.
    12301232     */
Note: See TracChangeset for help on using the changeset viewer.