Make WordPress Core


Ignore:
Timestamp:
12/04/2021 03:55:03 PM (5 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-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.
Note: See TracChangeset for help on using the changeset viewer.