From 7ecfb1711568d430095fc4dfa6e692a385d171b8 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 13 Jun 2017 03:10:29 +0000 Subject: [PATCH] Docs: Include 'parent' as an acceptable entry for the `$orderby` argument in `WP_Term_Query`. h/t kalor. See #41017. git-svn-id: https://develop.svn.wordpress.org/trunk@40900 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-term-query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-term-query.php b/src/wp-includes/class-wp-term-query.php index 74386bc9ab..2f3da47301 100644 --- a/src/wp-includes/class-wp-term-query.php +++ b/src/wp-includes/class-wp-term-query.php @@ -104,7 +104,7 @@ class WP_Term_Query { * @type int|array $object_ids Optional. Object ID, or array of object IDs. Results will be * limited to terms associated with these objects. * @type string $orderby Field(s) to order terms by. Accepts term fields ('name', - * 'slug', 'term_group', 'term_id', 'id', 'description'), + * 'slug', 'term_group', 'term_id', 'id', 'description', 'parent'), * 'count' for term taxonomy count, 'include' to match the * 'order' of the $include param, 'meta_value', 'meta_value_num', * the value of `$meta_key`, the array keys of `$meta_query`, or