Ticket #10722: 10722.2.patch
File 10722.2.patch, 640 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 } 488 } elseif ( !is_404() ) 487 489 status_header( 200 ); 488 }489 490 } 490 491 491 492 /** 492 493 * Sets up all of the variables required by the WordPress environment. 493 494 *