Make WordPress Core


Ignore:
Timestamp:
09/10/2012 05:00:11 PM (14 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r21776 r21792  
    8787 * @return array List of posts
    8888 */
    89 function &query_posts($query) {
     89function query_posts($query) {
    9090        unset($GLOBALS['wp_query']);
    9191        $GLOBALS['wp_query'] = new WP_Query();
    … …  
    19171917         * @return array List of posts.
    19181918         */
    1919         function &get_posts() {
     1919        function get_posts() {
    19201920                global $wpdb, $user_ID, $_wp_using_ext_object_cache;
    19211921
    … …  
    29372937         * @return array List of posts.
    29382938         */
    2939         function &query( $query ) {
     2939        function query( $query ) {
    29402940                $this->init();
    29412941                $this->query = $this->query_vars = wp_parse_args( $query );
Note: See TracChangeset for help on using the changeset viewer.