WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/01/2021 10:01:44 PM (7 months ago)
Author:
johnbillion
Message:

Docs: Further type corrections and improvements for various docblocks.

See #53399

File:
1 edited

Legend:

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

    r49927 r51302  
    2020 * @param int|string $cat_name Category name.
    2121 * @param int        $parent   Optional. ID of parent term.
    22  * @return mixed
     22 * @return string|null Returns the category ID as a numeric string if the pairing exists, null if not.
    2323 */
    2424function category_exists( $cat_name, $parent = null ) {
     
    216216 *
    217217 * @param int|string $tag_name
    218  * @return mixed
     218 * @return mixed Returns null if the term does not exist.
     219 *               Returns an array of the term ID and the term taxonomy ID if the pairing exists.
     220 *               Returns 0 if term ID 0 is passed to the function.
    219221 */
    220222function tag_exists( $tag_name ) {
Note: See TracChangeset for help on using the changeset viewer.