Make WordPress Core


Ignore:
Timestamp:
03/25/2018 06:09:56 PM (9 years ago)
Author:
johnbillion
Message:

Docs: Document more parameters and properties using typed array notation.

See #41756

File:
1 edited

Legend:

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

    r42343 r42875  
    274274 *
    275275 * @param string|array $args Tag arguments to use when retrieving tags.
    276  * @return array List of tags.
     276 * @return WP_Term[]|int $tags Array of 'post_tag' term objects, or a count thereof.
    277277 */
    278278function get_tags( $args = '' ) {
    … …  
    289289         * @since 2.3.0
    290290         *
    291          * @param array $tags Array of 'post_tag' term objects.
    292          * @param array $args An array of arguments. @see get_terms()
     291         * @param WP_Term[]|int $tags Array of 'post_tag' term objects, or a count thereof.
     292         * @param array         $args An array of arguments. @see get_terms()
    293293         */
    294294        $tags = apply_filters( 'get_tags', $tags, $args );
Note: See TracChangeset for help on using the changeset viewer.