Make WordPress Core

Changeset 52321


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.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r52320 r52321  
    6464     * Container to keep loaded i18n schema for `theme.json`.
    6565     *
    66      * @since 5.8.0
    67      * @since 5.9.0 Renamed from `$theme_json_i18n`.
     66     * @since 5.8.0 As `$theme_json_i18n`.
     67     * @since 5.9.0 Renamed from `$theme_json_i18n` to `$i18n_schema`.
    6868     * @var array
    6969     */
     
    224224     * @since 5.9.0
    225225     *
    226      * @param WP_Theme $theme              The theme object.  If empty, it
     226     * @param WP_Theme $theme              The theme object. If empty, it
    227227     *                                     defaults to the current theme.
    228228     * @param bool     $should_create_cpt  Optional. Whether a new custom post
    229229     *                                     type should be created if none are
    230      *                                     found.  False by default.
    231      * @param array    $post_status_filter Filter Optional. custom post type by
    232      *                                     post status.  ['publish'] by default,
     230     *                                     found. Default false.
     231     * @param array    $post_status_filter Optional. Filter custom post type by
     232     *                                     post status. Default `array( 'publish' )`,
    233233     *                                     so it only fetches published posts.
    234234     * @return array Custom Post Type for the user's origin config.
  • 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.