Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

Commit

Permalink
Docs: Add missing meta_type and meta_compare arguments to `WP_Ter…
Browse files Browse the repository at this point in the history
…m_Query::__construct()` and `get_terms()` docblocks.

Props 1naveengiri.
Fixes #39825.
Built from https://develop.svn.wordpress.org/trunk@40053


git-svn-id: http://core.svn.wordpress.org/trunk@39990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
SergeyBiryukov committed Feb 10, 2017
1 parent d333018 commit 62dc0e6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 5 additions & 2 deletions wp-includes/class-wp-term-query.php
Expand Up @@ -173,9 +173,12 @@ class WP_Term_Query {
* @type array $meta_query Optional. Meta query clauses to limit retrieved terms by.
* See `WP_Meta_Query`. Default empty.
* @type string $meta_key Limit terms to those matching a specific metadata key.
* Can be used in conjunction with `$meta_value`.
* Can be used in conjunction with `$meta_value`. Default empty.
* @type string $meta_value Limit terms to those matching a specific metadata value.
* Usually used in conjunction with `$meta_key`.
* Usually used in conjunction with `$meta_key`. Default empty.
* @type string $meta_type Type of object metadata is for (e.g., comment, post, or user).
* Default empty.
* @type string $meta_compare Comparison operator to test the 'meta_value'. Default empty.
* }
*/
public function __construct( $query = '' ) {
Expand Down
7 changes: 5 additions & 2 deletions wp-includes/taxonomy.php
Expand Up @@ -1077,9 +1077,12 @@ function get_term_to_edit( $id, $taxonomy ) {
* @type array $meta_query Meta query clauses to limit retrieved terms by.
* See `WP_Meta_Query`. Default empty.
* @type string $meta_key Limit terms to those matching a specific metadata key. Can be used in
* conjunction with `$meta_value`.
* conjunction with `$meta_value`. Default empty.
* @type string $meta_value Limit terms to those matching a specific metadata value. Usually used
* in conjunction with `$meta_key`.
* in conjunction with `$meta_key`. Default empty.
* @type string $meta_type Type of object metadata is for (e.g., comment, post, or user).
* Default empty.
* @type string $meta_compare Comparison operator to test the 'meta_value'. Default empty.
* }
* @param array $deprecated Argument array, when using the legacy function parameter format. If present, this
* parameter will be interpreted as `$args`, and the first function parameter will
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Expand Up @@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-40052';
$wp_version = '4.8-alpha-40053';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down

0 comments on commit 62dc0e6

Please sign in to comment.