Make WordPress Core

Changeset 14911


Ignore:
Timestamp:
05/25/2010 11:41:36 PM (14 years ago)
Author:
wpmuguru
Message:

allow main site 404 URL to be filtered, fixes #12758

File:
1 edited

Legend:

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

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