mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 22:56:19 +01:00
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 Built from https://develop.svn.wordpress.org/branches/6.7@59350 git-svn-id: http://core.svn.wordpress.org/branches/6.7@58736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
087e4c994a
commit
18a12d76c3
@ -206,7 +206,6 @@ class WP_Term_Query {
|
|||||||
'number' => '',
|
'number' => '',
|
||||||
'offset' => '',
|
'offset' => '',
|
||||||
'fields' => 'all',
|
'fields' => 'all',
|
||||||
'count' => false,
|
|
||||||
'name' => '',
|
'name' => '',
|
||||||
'slug' => '',
|
'slug' => '',
|
||||||
'term_taxonomy_id' => '',
|
'term_taxonomy_id' => '',
|
||||||
@ -302,7 +301,7 @@ class WP_Term_Query {
|
|||||||
*
|
*
|
||||||
* @param string|array $query Array or URL query string of parameters.
|
* @param string|array $query Array or URL query string of parameters.
|
||||||
* @return WP_Term[]|int[]|string[]|string Array of terms, or number of terms as numeric string
|
* @return WP_Term[]|int[]|string[]|string Array of terms, or number of terms as numeric string
|
||||||
* when 'count' is passed as a query var.
|
* when 'count' is passed to `$args['fields']`.
|
||||||
*/
|
*/
|
||||||
public function query( $query ) {
|
public function query( $query ) {
|
||||||
$this->query_vars = wp_parse_args( $query );
|
$this->query_vars = wp_parse_args( $query );
|
||||||
@ -344,7 +343,7 @@ class WP_Term_Query {
|
|||||||
* @global wpdb $wpdb WordPress database abstraction object.
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @return WP_Term[]|int[]|string[]|string Array of terms, or number of terms as numeric string
|
* @return WP_Term[]|int[]|string[]|string Array of terms, or number of terms as numeric string
|
||||||
* when 'count' is passed as a query var.
|
* when 'count' is passed to `$args['fields']`.
|
||||||
*/
|
*/
|
||||||
public function get_terms() {
|
public function get_terms() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.7-RC2-59349';
|
$wp_version = '6.7-RC2-59350';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user