Make WordPress Core


Ignore:
Timestamp:
11/24/2020 09:25:46 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Upgrade more parameters in docblocks to used typed array notation.

See #51800, #41756

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r49692 r49693  
    13081308 *     @type string       $label                 Name of the post type shown in the menu. Usually plural.
    13091309 *                                               Default is value of $labels['name'].
    1310  *     @type array        $labels                An array of labels for this post type. If not set, post
     1310 *     @type string[]     $labels                An array of labels for this post type. If not set, post
    13111311 *                                               labels are inherited for non-hierarchical types and page
    13121312 *                                               labels for hierarchical ones. See get_post_type_labels() for a full
     
    13571357 *                                               this argument as a base to construct the capabilities, e.g.
    13581358 *                                               array('story', 'stories'). Default 'post'.
    1359  *     @type array        $capabilities          Array of capabilities for this post type. $capability_type is used
     1359 *     @type string[]     $capabilities          Array of capabilities for this post type. $capability_type is used
    13601360 *                                               as a base to construct capabilities by default.
    13611361 *                                               See get_post_type_capabilities().
     
    13761376 *                                               edit form. Do remove_meta_box() and add_meta_box() calls in the
    13771377 *                                               callback. Default null.
    1378  *     @type array        $taxonomies            An array of taxonomy identifiers that will be registered for the
     1378 *     @type string[]     $taxonomies            An array of taxonomy identifiers that will be registered for the
    13791379 *                                               post type. Taxonomies can be registered later with register_taxonomy()
    13801380 *                                               or register_taxonomy_for_object_type().
     
    27232723 * @global wpdb $wpdb WordPress database abstraction object.
    27242724 *
    2725  * @param string|array $mime_type Optional. Array or comma-separated list of
    2726  *                                MIME patterns. Default empty.
     2725 * @param string|string[] $mime_type Optional. Array or comma-separated list of
     2726 *                                   MIME patterns. Default empty.
    27272727 * @return object An object containing the attachment counts by mime type.
    27282728 */
     
    28642864 * @since 2.5.0
    28652865 *
    2866  * @param string|array $wildcard_mime_types Mime types, e.g. audio/mpeg or image (same as image/*)
    2867  *                                          or flash (same as *flash*).
    2868  * @param string|array $real_mime_types     Real post mime type values.
     2866 * @param string|string[] $wildcard_mime_types Mime types, e.g. audio/mpeg or image (same as image/*)
     2867 *                                             or flash (same as *flash*).
     2868 * @param string|string[] $real_mime_types     Real post mime type values.
    28692869 * @return array array(wildcard=>array(real types)).
    28702870 */
     
    29162916 * @since 2.5.0
    29172917 *
    2918  * @param string|array $post_mime_types List of mime types or comma separated string
    2919  *                                      of mime types.
    2920  * @param string       $table_alias     Optional. Specify a table alias, if needed.
    2921  *                                      Default empty.
     2918 * @param string|string[] $post_mime_types List of mime types or comma separated string
     2919 *                                         of mime types.
     2920 * @param string          $table_alias     Optional. Specify a table alias, if needed.
     2921 *                                         Default empty.
    29222922 * @return string The SQL AND clause for mime searching.
    29232923 */
     
    35213521 * @since 2.8.0
    35223522 *
    3523  * @param int          $post_id  Optional. The Post ID. Does not default to the ID of the
    3524  *                               global $post. Default 0.
    3525  * @param string|array $taxonomy Optional. The taxonomy slug or array of slugs for which
    3526  *                               to retrieve terms. Default 'post_tag'.
    3527  * @param array        $args     {
     3523 * @param int             $post_id  Optional. The Post ID. Does not default to the ID of the
     3524 *                                  global $post. Default 0.
     3525 * @param string|string[] $taxonomy Optional. The taxonomy slug or array of slugs for which
     3526 *                                  to retrieve terms. Default 'post_tag'.
     3527 * @param array           $args     {
    35283528 *     Optional. Term query parameters. See WP_Term_Query::__construct() for supported arguments.
    35293529 *
Note: See TracChangeset for help on using the changeset viewer.