Ticket #10722: 10722.5.patch
| File 10722.5.patch, 835 bytes (added by , 10 years ago) |
|---|
-
src/wp-includes/class-wp.php
611 611 public function handle_404() { 612 612 global $wp_query; 613 613 614 /** 615 * Filter whether to short-circuit default header status handling. 616 * 617 * Returning a non-false value from the filter will short-circuit the handling 618 * and return early. 619 * 620 * @since 4.5.0 621 * 622 * @param bool $preempt Whether to short-circuit default header status handling. Default false. 623 * @param WP_Query $wp_query WordPress Query object. 624 */ 625 if ( false !== apply_filters( 'pre_handle_404', false, $wp_query ) ) { 626 return; 627 } 628 614 629 // If we've already issued a 404, bail. 615 630 if ( is_404() ) 616 631 return;