Query: Improve documentation for orderby=relevance in WP_Query.

Props dots.
Fixes #39336.
Built from https://develop.svn.wordpress.org/trunk@39636


git-svn-id: http://core.svn.wordpress.org/trunk@39576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2016-12-23 02:31:41 +00:00
parent 7a8e17d50a
commit af885f45cf
2 changed files with 7 additions and 5 deletions

View File

@ -690,12 +690,14 @@ class WP_Query {
* passed. To use 'meta_value', or 'meta_value_num',
* 'meta_key=keyname' must be also be defined. To sort by a
* specific `$meta_query` clause, use that clause's array key.
* Default 'date'. Accepts 'none', 'name', 'author', 'date',
* 'title', 'modified', 'menu_order', 'parent', 'ID', 'rand',
* 'RAND(x)' (where 'x' is an integer seed value),
* Accepts 'none', 'name', 'author', 'date', 'title',
* 'modified', 'menu_order', 'parent', 'ID', 'rand',
* 'relevance', 'RAND(x)' (where 'x' is an integer seed value),
* 'comment_count', 'meta_value', 'meta_value_num', 'post__in',
* 'post_name__in', 'post_parent__in', and the array keys
* of `$meta_query`.
* of `$meta_query`. Default is 'date', except when a search
* is being performed, when the default is 'relevance'.
*
* @type int $p Post ID.
* @type int $page Show the number of posts that would show up on page X of a
* static front page.

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-39635';
$wp_version = '4.8-alpha-39636';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.