Make WordPress Core


Ignore:
Timestamp:
12/04/2021 03:55:03 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Further update some @since notes in WP_Theme_JSON methods for clarity.

Follow-up to [52049], [52306], [52320].

See #53399, #54336.

File:
1 edited

Legend:

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

    r52320 r52321  
    217217     * The top-level keys a theme.json can have.
    218218     *
    219      * @since 5.8.0
    220      * @since 5.9.0 Renamed from `ALLOWED_TOP_LEVEL_KEYS`,
     219     * @since 5.8.0 As `ALLOWED_TOP_LEVEL_KEYS`.
     220     * @since 5.9.0 Renamed from `ALLOWED_TOP_LEVEL_KEYS` to `VALID_TOP_LEVEL_KEYS`,
    221221     *              added the `customTemplates` and `templateParts` values.
    222222     * @var string[]
     
    233233     * The valid properties under the settings key.
    234234     *
    235      * @since 5.8.0
    236      * @since 5.9.0 Renamed from `ALLOWED_SETTINGS`, added new properties
    237      *              for `border`, `color`, `spacing`, and `typography`,
    238      *              and renamed others according to the new schema.
     235     * @since 5.8.0 As `ALLOWED_SETTINGS`.
     236     * @since 5.9.0 Renamed from `ALLOWED_SETTINGS` to `VALID_SETTINGS`,
     237     *              added new properties for `border`, `color`, `spacing`,
     238     *              and `typography`, and renamed others according to the new schema.
    239239     * @var array
    240240     */
     
    288288     * The valid properties under the styles key.
    289289     *
    290      * @since 5.8.0
    291      * @since 5.9.0 Renamed from `ALLOWED_SETTINGS`, added new properties
    292      *              for `border`, `filter`, `spacing`, and `typography`.
     290     * @since 5.8.0 As `ALLOWED_STYLES`.
     291     * @since 5.9.0 Renamed from `ALLOWED_STYLES` to `VALID_STYLES`,
     292     *              added new properties for `border`, `filter`, `spacing`,
     293     *              and `typography`.
    293294     * @var array
    294295     */
     
    745746     *   }
    746747     *
    747      * @since 5.8.0
     748     * @since 5.8.0 As `get_block_styles()`.
    748749     * @since 5.9.0 Renamed from `get_block_styles()` to `get_block_classes()`
    749750     *              and no longer returns preset classes.
     751     *              Removed the `$setting_nodes` parameter.
    750752     *
    751753     * @param array $style_nodes Nodes with styles.
     
    15441546     *
    15451547     * @param array $data      A theme.json like structure to inspect.
    1546      * @param array $node_path The path to inspect. Default is 'settings'.
     1548     * @param array $node_path The path to inspect. Default `array( 'settings' )`.
    15471549     * @return array An associative array containing the slugs for the given path.
    15481550     */
Note: See TracChangeset for help on using the changeset viewer.