Changeset 37877 for trunk/src/wp-includes/query.php
- Timestamp:
- 06/26/2016 05:46:10 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r37862 r37877 78 78 79 79 /** 80 * Set up The Loop with query parameters. 81 * 82 * This will override the current WordPress Loop and shouldn't be used more than 83 * once. This must not be used within the WordPress Loop. 80 * Sets up The Loop with query parameters. 81 * 82 * Important: This will completely override the current WordPress Loop and can easily 83 * produce unexpected results. In most cases, the better option is to instead modify 84 * specific properties of the loop using the {@see 'pre_get_posts'} action. 85 * 86 * This must not be used within the WordPress Loop. 84 87 * 85 88 * @since 1.5.0 … … 87 90 * @global WP_Query $wp_query Global WP_Query instance. 88 91 * 89 * @param string $query90 * @return array List of post s92 * @param array|string $query Array or string of WP_Query arguments. 93 * @return array List of post objects. 91 94 */ 92 95 function query_posts($query) {
Note: See TracChangeset
for help on using the changeset viewer.