Make WordPress Core

Ticket #1736: classes.php.diff

File classes.php.diff, 345 bytes (added by ringmaster, 19 years ago)

New hook added to classes.php, 'pre_get_posts'.

  • classes.php

     
    237237        function &get_posts() {
    238238                global $wpdb, $pagenow, $request, $user_ID;
    239239
     240                do_action('pre_get_posts', array(&$this));
     241
    240242                // Shorthand.
    241243                $q = $this->query_vars;
    242244