Docs: Further improve the note of caution within the DocBlock description for `query_posts()`.

See #32246.

Built from https://develop.svn.wordpress.org/trunk@37878


git-svn-id: http://core.svn.wordpress.org/trunk@37819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2016-06-26 18:06:27 +00:00
parent 872f1c5d38
commit 21ef286eef
2 changed files with 6 additions and 4 deletions

View File

@ -79,9 +79,11 @@ function set_query_var( $var, $value ) {
/** /**
* Sets up The Loop with query parameters. * Sets up The Loop with query parameters.
* *
* Important: This will completely override the current WordPress Loop and can easily * Note: This function will completely override the main query and isn't intended for use
* produce unexpected results. In most cases, the better option is to instead modify * by plugins or themes. Its overly-simplistic approach to modifying the main query can be
* specific properties of the loop using the {@see 'pre_get_posts'} action. * problematic and should be avoided wherever possible. In most cases, there are better,
* more performant options for modifying the main query such as via the {@see 'pre_get_posts'}
* action within WP_Query.
* *
* This must not be used within the WordPress Loop. * This must not be used within the WordPress Loop.
* *

View File

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