From 353def14e23630a53b191bb8ad317f33b061e99e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 3 Jun 2020 14:41:06 +0000 Subject: [PATCH] Docs: Document the `term_order` value for the `orderby` parameter of `WP_Term_Query::__construct()`. Props pbiron. See #49572. Built from https://develop.svn.wordpress.org/trunk@47898 git-svn-id: http://core.svn.wordpress.org/trunk@47672 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-term-query.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-term-query.php b/wp-includes/class-wp-term-query.php index 39936750c8..2973dbb45a 100644 --- a/wp-includes/class-wp-term-query.php +++ b/wp-includes/class-wp-term-query.php @@ -98,7 +98,8 @@ class WP_Term_Query { * 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'). + * 'description', 'parent', 'term_order'). Unless `$object_ids` + * is not empty, 'term_order' is treated the same as 'term_id'. * - 'count' for term taxonomy count. * - 'include' to match the 'order' of the $include param. * - 'slug__in' to match the 'order' of the $slug param. diff --git a/wp-includes/version.php b/wp-includes/version.php index f6be8f0b0b..3ad41a210c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47897'; +$wp_version = '5.5-alpha-47898'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.