Ticket #10722: 10722.3.patch
File 10722.3.patch, 652 bytes (added by , 15 years ago) |
---|
-
wp-includes/classes.php
480 480 status_header( 200 ); 481 481 return; 482 482 } 483 $wp_query->set_404(); 484 status_header( 404 ); 485 nocache_headers(); 486 } elseif ( !is_404() ) { 483 if( apply_filters('handle_404', true) ) { 484 $wp_query->set_404(); 485 status_header( 404 ); 486 nocache_headers(); 487 return; 488 } 489 } 490 if ( !is_404() ) 487 491 status_header( 200 ); 488 }489 492 } 490 493 491 494 /** 492 495 * Sets up all of the variables required by the WordPress environment. 493 496 *