Ticket #21573: 21573.patch
File 21573.patch, 748 bytes (added by , 12 years ago) |
---|
-
ms-functions.php
1607 1607 } 1608 1608 1609 1609 /** 1610 * Correct 404 redirects when NOBLOGREDIRECT is defined. 1610 * Correct 404 redirects on subdirectory installs 1611 * when NOBLOGREDIRECT is defined. 1611 1612 * 1612 1613 * @since MU 1613 1614 */ 1614 1615 function maybe_redirect_404() { 1616 1617 // If we're running on a subdomain install, bail early 1618 if ( is_subdomain_install() ) 1619 return; 1620 1621 // Otherwise, do the redirect 1615 1622 global $current_site; 1616 1623 if ( is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && ( $destination = apply_filters( 'blog_redirect_404', NOBLOGREDIRECT ) ) ) { 1617 1624 if ( $destination == '%siteurl%' )