Make WordPress Core

Changeset 52652


Ignore:
Timestamp:
01/30/2022 07:23:25 PM (2 years ago)
Author:
johnbillion
Message:

Docs: Increase the specificity of types in various inline documentation.

See #54729

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-walker-category-dropdown.php

    r51779 r52652  
    3232     * @since 2.1.0
    3333     * @todo Decouple this
    34      * @var array
     34     * @var string[]
    3535     *
    3636     * @see Walker::$db_fields
  • trunk/src/wp-includes/class-walker-category.php

    r52180 r52652  
    3131     *
    3232     * @since 2.1.0
    33      * @var array
     33     * @var string[]
    3434     *
    3535     * @see Walker::$db_fields
  • trunk/src/wp-includes/class-walker-comment.php

    r51780 r52652  
    3131     *
    3232     * @since 2.7.0
    33      * @var array
     33     * @var string[]
    3434     *
    3535     * @see Walker::$db_fields
  • trunk/src/wp-includes/class-walker-nav-menu.php

    r51780 r52652  
    3131     * @since 3.0.0
    3232     * @todo Decouple this.
    33      * @var array
     33     * @var string[]
    3434     *
    3535     * @see Walker::$db_fields
  • trunk/src/wp-includes/class-walker-page-dropdown.php

    r51779 r52652  
    3131     *
    3232     * @since 2.1.0
    33      * @var array
     33     * @var string[]
    3434     *
    3535     * @see Walker::$db_fields
  • trunk/src/wp-includes/class-walker-page.php

    r51780 r52652  
    3131     *
    3232     * @since 2.1.0
    33      * @var array
     33     * @var string[]
    3434     *
    3535     * @see Walker::$db_fields
  • trunk/src/wp-includes/class-wp-block-type.php

    r51501 r52652  
    8080     *
    8181     * @since 5.5.0
    82      * @var array
     82     * @var string[]
    8383     */
    8484    public $keywords = array();
     
    224224     *     @type string|null   $icon             Block type icon.
    225225     *     @type string        $description      A detailed block type description.
    226      *     @type array         $keywords         Additional keywords to produce block type as
     226     *     @type string[]      $keywords         Additional keywords to produce block type as
    227227     *                                           result in search interfaces.
    228228     *     @type string|null   $textdomain       The translation textdomain.
  • trunk/src/wp-includes/class-wp-date-query.php

    r52332 r52652  
    5454     *
    5555     * @since 4.1.0
    56      * @var array
     56     * @var string[]
    5757     */
    5858    public $time_keys = array( 'after', 'before', 'year', 'month', 'monthnum', 'week', 'w', 'dayofyear', 'day', 'dayofweek', 'dayofweek_iso', 'hour', 'minute', 'second' );
  • trunk/src/wp-includes/class-wp-list-util.php

    r52422 r52652  
    3535     *
    3636     * @since 4.7.0
    37      * @var array
     37     * @var string[]
    3838     */
    3939    private $orderby = array();
  • trunk/src/wp-includes/class-wp-locale.php

    r52597 r52652  
    1919     *
    2020     * @since 2.1.0
    21      * @var array
     21     * @var string[]
    2222     */
    2323    public $weekday;
     
    3232     *
    3333     * @since 2.1.0
    34      * @var array
     34     * @var string[]
    3535     */
    3636    public $weekday_initial;
     
    4040     *
    4141     * @since 2.1.0
    42      * @var array
     42     * @var string[]
    4343     */
    4444    public $weekday_abbrev;
     
    4848     *
    4949     * @since 2.1.0
    50      * @var array
     50     * @var string[]
    5151     */
    5252    public $month;
     
    5656     *
    5757     * @since 4.4.0
    58      * @var array
     58     * @var string[]
    5959     */
    6060    public $month_genitive;
     
    6464     *
    6565     * @since 2.1.0
    66      * @var array
     66     * @var string[]
    6767     */
    6868    public $month_abbrev;
     
    7474     *
    7575     * @since 2.1.0
    76      * @var array
     76     * @var string[]
    7777     */
    7878    public $meridiem;
  • trunk/src/wp-includes/class-wp-post-type.php

    r52215 r52652  
    9393     *
    9494     * Endpoints would include:
     95     *
    9596     * - `?post_type={post_type_key}`
    9697     * - `?{post_type_key}={single_post_slug}`
  • trunk/src/wp-includes/class-wp-rewrite.php

    r52640 r52652  
    276276     *
    277277     * @since 1.5.0
    278      * @var array
     278     * @var string[]
    279279     */
    280280    public $rewritecode = array(
     
    297297     *
    298298     * @since 1.5.0
    299      * @var array
     299     * @var string[]
    300300     */
    301301    public $rewritereplace = array(
     
    317317     *
    318318     * @since 1.5.0
    319      * @var array
     319     * @var string[]
    320320     */
    321321    public $queryreplace = array(
     
    337337     *
    338338     * @since 1.5.0
    339      * @var array
     339     * @var string[]
    340340     */
    341341    public $feeds = array( 'feed', 'rdf', 'rss', 'rss2', 'atom' );
  • trunk/src/wp-includes/class-wp-taxonomy.php

    r51965 r52652  
    145145     *
    146146     * @since 4.7.0
    147      * @var array
     147     * @var string[]
    148148     */
    149149    public $object_type = null;
     
    290290     * @since 4.7.0
    291291     *
    292      * @param array|string $object_type Name of the object type for the taxonomy object.
    293      * @param array|string $args        Array or query string of arguments for registering a taxonomy.
     292     * @param string|string[] $object_type Name or array of names of the object types for the taxonomy.
     293     * @param array|string    $args        Array or query string of arguments for registering a taxonomy.
    294294     */
    295295    public function set_props( $object_type, $args ) {
  • trunk/src/wp-includes/class-wp-theme.php

    r52610 r52652  
    2424     * @since 3.4.0
    2525     * @since 5.4.0 Added `Requires at least` and `Requires PHP` headers.
    26      * @var array
     26     * @var string[]
    2727     */
    2828    private static $file_headers = array(
     
    5555     * @since 5.3.0 Added the Twenty Twenty theme.
    5656     * @since 5.6.0 Added the Twenty Twenty-One theme.
    57      * @var array
     57     * @var string[]
    5858     */
    5959    private static $default_themes = array(
     
    7878     *
    7979     * @since 3.8.0
    80      * @var array
     80     * @var string[]
    8181     */
    8282    private static $tag_map = array(
  • trunk/src/wp-includes/class-wp-walker.php

    r52215 r52652  
    2525     *
    2626     * @since 2.1.0
    27      * @var array
     27     * @var string[]
    2828     */
    2929    public $db_fields;
Note: See TracChangeset for help on using the changeset viewer.