WordPress.org

Make WordPress Core

Ticket #10722: 10722.4.patch

File 10722.4.patch, 397 bytes (added by ethitter, 19 months ago)

refreshed for 3.4

  • wp-includes/class-wp.php

     
    505505                        } 
    506506                } 
    507507 
     508                // Let plugins hook in and possibly abort the 404 
     509                do_action( 'pre_send_404_header' ); 
     510 
    508511                // Guess it's time to 404. 
    509512                $wp_query->set_404(); 
    510513                status_header( 404 );