Make WordPress Core


Ignore:
Timestamp:
11/05/2024 02:22:11 PM (21 months ago)
Author:
desrosj
Message:

Taxonomy: Remove count references from WP_Term_Query.

Remove further documentation and a code reference to the unsupported count argument within WP_Term_Query.

Follow up to [59261].

Reviewed by peterwilsoncc, desrosj.
Merges [59325] to the 6.7 branch.

Props johnbillion.
Fixes #61094

Location:
branches/6.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.7

  • branches/6.7/src/wp-includes/class-wp-term-query.php

    r59261 r59350  
    207207                        'offset'                 => '',
    208208                        'fields'                 => 'all',
    209                         'count'                  => false,
    210209                        'name'                   => '',
    211210                        'slug'                   => '',
     
    303302         * @param string|array $query Array or URL query string of parameters.
    304303         * @return WP_Term[]|int[]|string[]|string Array of terms, or number of terms as numeric string
    305          *                                         when 'count' is passed as a query var.
     304         *                                         when 'count' is passed to `$args['fields']`.
    306305         */
    307306        public function query( $query ) {
     
    345344         *
    346345         * @return WP_Term[]|int[]|string[]|string Array of terms, or number of terms as numeric string
    347          *                                         when 'count' is passed as a query var.
     346         *                                         when 'count' is passed to `$args['fields']`.
    348347         */
    349348        public function get_terms() {
Note: See TracChangeset for help on using the changeset viewer.