WordPress.org

Make WordPress Core

Ticket #21978: 21978.patch

File 21978.patch, 397 bytes (added by ethitter, 6 years ago)
  • 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 );