Make WordPress Core

Changeset 59261


Ignore:
Timestamp:
10/21/2024 01:20:40 AM (6 weeks ago)
Author:
peterwilsoncc
Message:

Taxonomy: Remove count argument from WP_Term_Query docs.

The DocBlock of WP_Term_Query::__construct mentions the count argument, however, this argument is not supported in WP_Term_Query::get_terms().

Props sergeybiryukov, swissspidy, snehapatil02, tyrannous.
Fixes #61094.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-term-query.php

    r59028 r59261  
    149149     *                                                      keyed by term ID (`string[]`).
    150150     *                                                   Default 'all'.
    151      *     @type bool            $count                  Whether to return a term count. If true, will take precedence
    152      *                                                   over `$fields`. Default false.
    153151     *     @type string|string[] $name                   Name or array of names to return term(s) for.
    154152     *                                                   Default empty.
Note: See TracChangeset for help on using the changeset viewer.