Make WordPress Core

Ticket #2256: get_posts.diff

File get_posts.diff, 480 bytes (added by m4ttias, 20 years ago)
  • classes.php

    old new  
    262262                do_action('pre_get_posts', array(&$this));
    263263
    264264                // Shorthand.
    265                 $q = $this->query_vars;
     265                $q = &$this->query_vars;       
    266266
    267267                // First let's clear some variables
    268268                $whichcat = '';
     
    685685                        $this->post = $this->posts[0];
    686686                }
    687687               
    688                 // Save any changes made to the query vars.
    689                 $this->query_vars = $q;
    690688                return $this->posts;
    691689        }
    692690