Make WordPress Core

Changeset 48219


Ignore:
Timestamp:
06/30/2020 12:02:05 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct documentation for the filter parameter of get_category() and get_tag().

Follow-up to [48197].

See #49572.

File:
1 edited

Legend:

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

    r48100 r48219  
    8585 *                       which correspond to a WP_Term object, an associative array, or a numeric array,
    8686 *                       respectively. Default OBJECT.
    87  * @param string $filter Optional. Default is raw or no WordPress defined filter will applied.
     87 * @param string $filter Optional. How to sanitize category fields. Default 'raw'.
    8888 * @return object|array|WP_Error|null Category data in type defined by $output parameter.
    8989 *                                    WP_Error if $category is empty, null if it does not exist.
     
    333333 *                                   which correspond to a WP_Term object, an associative array, or a numeric array,
    334334 *                                   respectively. Default OBJECT.
    335  * @param string             $filter Optional. Default is raw or no WordPress defined filter will applied.
     335 * @param string             $filter Optional. How to sanitize tag fields. Default 'raw'.
    336336 * @return WP_Term|array|WP_Error|null Tag data in type defined by $output parameter.
    337337 *                                     WP_Error if $tag is empty, null if it does not exist.
Note: See TracChangeset for help on using the changeset viewer.