Make WordPress Core

Ticket #10722: 10722.2.patch

File 10722.2.patch, 640 bytes (added by prettyboymp, 15 years ago)

fixed undefined $handle_404 var

  • wp-includes/classes.php

     
    480480                                        status_header( 200 );
    481481                                return;
    482482                        }
    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() )
    487489                        status_header( 200 );
    488                 }
    489490        }
    490 
     491       
    491492        /**
    492493         * Sets up all of the variables required by the WordPress environment.
    493494         *