From f1944a32a464a6a64568402e1b47fe7f724e6138 Mon Sep 17 00:00:00 2001
From: Paul Biron <paul@sparrowhawkcomputing.com>
Date: Mon, 1 Jun 2020 16:07:06 -0600
Subject: [PATCH] Add 'term_order' to the description of the `$orderby`
 parameter of `WP_Term_Query::__construct()`/

---
 src/wp-includes/class-wp-term-query.php | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/wp-includes/class-wp-term-query.php b/src/wp-includes/class-wp-term-query.php
index 6d4844d173..b62e32c5c8 100644
--- a/src/wp-includes/class-wp-term-query.php
+++ b/src/wp-includes/class-wp-term-query.php
@@ -97,12 +97,14 @@ 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', 'parent'),
-	 *                                                'count' for term taxonomy count, 'include' to match the
-	 *                                                'order' of the $include param, 'slug__in' to match the
+	 *                                                'slug', 'term_group', 'term_id', 'id', 'description', 'parent',
+	 *                                                'term_order'), 'count' for term taxonomy count, 'include' to
+	 *                                                match the 'order' of the $include param, 'slug__in' to match the
 	 *                                                'order' of the $slug param, 'meta_value', 'meta_value_num',
 	 *                                                the value of `$meta_key`, the array keys of `$meta_query`, or
-	 *                                                'none' to omit the ORDER BY clause. Defaults to 'name'.
+	 *                                                'none' to omit the ORDER BY clause. Unless `$object_ids` is
+	 *                                                not empty, 'term_order' is interpreted the same as 'term_id`.
+	 *                                                Defaults to 'name'.
 	 *     @type string       $order                  Whether to order terms in ascending or descending order.
 	 *                                                Accepts 'ASC' (ascending) or 'DESC' (descending).
 	 *                                                Default 'ASC'.
-- 
2.26.2.windows.1

