Make WordPress Core

Ticket #10886: lighter-load.patch

File lighter-load.patch, 660 bytes (added by junsuijin, 15 years ago)
  • wp-includes/classes.php

     
    487487         */
    488488        function main($query_args = '') {
    489489                $this->init();
    490                 $this->parse_request($query_args);
    491                 $this->send_headers();
    492                 $this->query_posts();
    493                 $this->handle_404();
    494                 $this->register_globals();
     490
     491                if ( !defined( 'NO_QUERY' ) ) {
     492                        $this->parse_request($query_args);
     493                        $this->send_headers();
     494                        $this->query_posts();
     495                        $this->handle_404();
     496                        $this->register_globals();
     497                }
     498
    495499                do_action_ref_array('wp', array(&$this));
    496500        }
    497501