Make WordPress Core

Changeset 14899


Ignore:
Timestamp:
05/25/2010 06:12:14 PM (15 years ago)
Author:
nacin
Message:

Use a filter instead of a new NO404REDIRECT constant. see #12758.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-functions.php

    r14892 r14899  
    13041304function maybe_redirect_404() {
    13051305    global $current_site;
    1306     if ( ( !defined( 'NO404REDIRECT' ) || ! NO404REDIRECT ) && is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && ( $destination = NOBLOGREDIRECT ) ) {
     1306    if ( apply_filters( 'blog_redirect_404', true ) && is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && ( $destination = NOBLOGREDIRECT ) ) {
    13071307        if ( $destination == '%siteurl%' )
    13081308            $destination = network_home_url();
Note: See TracChangeset for help on using the changeset viewer.