Make WordPress Core

Ticket #10722: 10722.3.patch

File 10722.3.patch, 652 bytes (added by prettyboymp, 15 years ago)

fixed logic differences

  • 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                                return;
     488                        }
     489                }
     490                if ( !is_404() )
    487491                        status_header( 200 );
    488                 }
    489492        }
    490 
     493       
    491494        /**
    492495         * Sets up all of the variables required by the WordPress environment.
    493496         *