Changeset 52814
- Timestamp:
- 03/02/2022 03:10:48 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp.php
r52805 r52814 130 130 * 131 131 * @param array|string $extra_query_vars Set the extra query variables. 132 132 133 */ 133 134 public function parse_request( $extra_query_vars = '' ) { … … 144 145 */ 145 146 if ( ! apply_filters( 'do_parse_request', true, $this, $extra_query_vars ) ) { 146 return ;147 return; 147 148 } 148 149 … … 395 396 */ 396 397 do_action_ref_array( 'parse_request', array( &$this ) ); 398 399 397 400 } 398 401 … … 756 759 public function main( $query_args = '' ) { 757 760 $this->init(); 758 $ this->parse_request( $query_args );761 $this->parse_request( $query_args ); 759 762 $this->send_headers(); 760 $this->query_posts(); 761 $this->handle_404(); 762 $this->register_globals(); 763 763 if ( $parsed ) { 764 $this->query_posts(); 765 $this->handle_404(); 766 $this->register_globals(); 767 } 764 768 /** 765 769 * Fires once the WordPress environment has been set up. -
trunk/tests/phpunit/tests/wp/parseRequest.php
r51622 r52814 40 40 $this->assertSame( '', $this->wp->request ); 41 41 } 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 42 58 }
Note: See TracChangeset
for help on using the changeset viewer.