Remove unnecessary return by refs. Props wonderboymusic. fixes #21839

git-svn-id: https://develop.svn.wordpress.org/trunk@21792 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2012-09-10 17:00:11 +00:00
parent 9360033fbe
commit 879cb8231b
9 changed files with 21 additions and 21 deletions

View File

@@ -86,7 +86,7 @@ function set_query_var($var, $value) {
* @param string $query
* @return array List of posts
*/
function &query_posts($query) {
function query_posts($query) {
unset($GLOBALS['wp_query']);
$GLOBALS['wp_query'] = new WP_Query();
return $GLOBALS['wp_query']->query($query);
@@ -1916,7 +1916,7 @@ class WP_Query {
*
* @return array List of posts.
*/
function &get_posts() {
function get_posts() {
global $wpdb, $user_ID, $_wp_using_ext_object_cache;
$this->parse_query();
@@ -2936,7 +2936,7 @@ class WP_Query {
* @param string $query URL query string.
* @return array List of posts.
*/
function &query( $query ) {
function query( $query ) {
$this->init();
$this->query = $this->query_vars = wp_parse_args( $query );
return $this->get_posts();