Make WordPress Core


Ignore:
Timestamp:
11/24/2020 09:25:46 PM (4 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-template.php

    r49193 r49693  
    452452 * @since 2.7.0
    453453 *
    454  * @param string|array $class   One or more classes to add to the class list.
    455  * @param int|WP_Post  $post_id Optional. Post ID or post object. Defaults to the global `$post`.
     454 * @param string|string[] $class   One or more classes to add to the class list.
     455 * @param int|WP_Post     $post_id Optional. Post ID or post object. Defaults to the global `$post`.
    456456 */
    457457function post_class( $class = '', $post_id = null ) {
     
    17501750 * @since 4.7.0 Now works with any post type, not just pages.
    17511751 *
    1752  * @param string|array $template The specific template filename or array of templates to match.
     1752 * @param string|string[] $template The specific template filename or array of templates to match.
    17531753 * @return bool True on success, false on failure.
    17541754 */
Note: See TracChangeset for help on using the changeset viewer.