Make WordPress Core


Ignore:
Timestamp:
10/26/2019 09:07:10 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Switch more docs over to typed array notation, plus some fixes.

See #48303, #41756

File:
1 edited

Legend:

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

    r46424 r46596  
    11331133 *                                 parameter will be interpreted as `$args`, and the first function parameter will
    11341134 *                                 be parsed as a taxonomy or array of taxonomies.
    1135  * @return array|int|WP_Error List of WP_Term instances and their children. Will return WP_Error, if any of taxonomies
    1136  *                            do not exist.
     1135 * @return WP_Term[]|int|WP_Error List of WP_Term instances and their children. Will return WP_Error, if any of taxonomies
     1136 *                                do not exist.
    11371137 */
    11381138function get_terms( $args = array(), $deprecated = '' ) {
     
    32203220 * @global bool $_wp_suspend_cache_invalidation
    32213221 *
    3222  * @param int|array $ids            Single or list of Term IDs.
    3223  * @param string    $taxonomy       Optional. Can be empty and will assume `tt_ids`, else will use for context.
    3224  *                                  Default empty.
     3222 * @param int|int[] $ids            Single or array of term IDs.
     3223 * @param string    $taxonomy       Optional. Taxonomy slug. Can be empty, in which case the taxonomies of the passed
     3224 *                                  term IDs will be used. Default empty.
    32253225 * @param bool      $clean_taxonomy Optional. Whether to clean taxonomy wide caches (true), or just individual
    32263226 *                                  term object caches (false). Default true.
     
    34373437 * @since 2.3.0
    34383438 *
    3439  * @param array  $terms    List of term objects to change.
    3440  * @param string $taxonomy Optional. Update Term to this taxonomy in cache. Default empty.
     3439 * @param WP_Term[] $terms    Array of term objects to change.
     3440 * @param string    $taxonomy Not used.
    34413441 */
    34423442function update_term_cache( $terms, $taxonomy = '' ) {
Note: See TracChangeset for help on using the changeset viewer.