diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php index 47b8fc793d..eb68f219ce 100644 --- a/wp-includes/class-wp-query.php +++ b/wp-includes/class-wp-query.php @@ -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. diff --git a/wp-includes/version.php b/wp-includes/version.php index 52641adad4..df60e3f58c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.