Make WordPress Core

Ticket #50344: 50344.diff

File 50344.diff, 724 bytes (added by coffee2code, 6 years ago)

Patch mentioned in ticket.

  • src/wp-includes/category.php

     
    283283 * @see get_terms() For list of arguments to pass.
    284284 *
    285285 * @param string|array $args Tag arguments to use when retrieving tags.
    286  * @return WP_Term[]|int $tags Array of 'post_tag' term objects, or a count thereof.
     286 * @return WP_Term[]|int|WP_Error $tags Array of 'post_tag' term objects, a count thereof, or WP_Error if any
     287 *                                      explicitly specified taxonomies do not exist.
    287288 */
    288289function get_tags( $args = '' ) {
    289290        $defaults = array( 'taxonomy' => 'post_tag' );