WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/23/2016 04:47:47 PM (4 years ago)
Author:
boonebgorges
Message:

Docs: Improve description of get_term() return value.

Props sebastian.pisula.
Fixes #35919.

File:
1 edited

Legend:

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

    r36614 r36634  
    814814 * @param string     $output   Constant OBJECT, ARRAY_A, or ARRAY_N
    815815 * @param string     $filter   Optional, default is raw or no WordPress defined filter will applied.
    816  * @return mixed Type corresponding to `$output` on success or null on failure. When `$output` is `OBJECT`,
    817  *               a WP_Term instance is returned. If taxonomy does not exist then WP_Error will be returned.
     816 * @return array|WP_Term|WP_Error|null Object of the type specified by `$output` on success. When `$output` is 'OBJECT',
     817 *                                     a WP_Term instance is returned. If taxonomy does not exist, a WP_Error is
     818 *                                     returned. Returns null for miscellaneous failure.
    818819 */
    819820function get_term( $term, $taxonomy = '', $output = OBJECT, $filter = 'raw' ) {
Note: See TracChangeset for help on using the changeset viewer.