| 1 | Index: wp-includes/ms-default-filters.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/ms-default-filters.php (revision 15125) |
|---|
| 4 | +++ wp-includes/ms-default-filters.php (working copy) |
|---|
| 5 | @@ -29,7 +29,6 @@ |
|---|
| 6 | add_action( 'signup_hidden_fields', 'signup_nonce_fields' ); |
|---|
| 7 | |
|---|
| 8 | // Template |
|---|
| 9 | -add_action( 'template_redirect', 'maybe_redirect_404' ); |
|---|
| 10 | add_filter( 'allowed_redirect_hosts', 'redirect_this_site' ); |
|---|
| 11 | |
|---|
| 12 | // Administration |
|---|
| 13 | Index: wp-includes/ms-functions.php |
|---|
| 14 | =================================================================== |
|---|
| 15 | --- wp-includes/ms-functions.php (revision 15125) |
|---|
| 16 | +++ wp-includes/ms-functions.php (working copy) |
|---|
| 17 | @@ -1308,16 +1308,6 @@ |
|---|
| 18 | return $result; |
|---|
| 19 | } |
|---|
| 20 | |
|---|
| 21 | -function maybe_redirect_404() { |
|---|
| 22 | - global $current_site; |
|---|
| 23 | - if ( is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && ( $destination = apply_filters( 'blog_redirect_404', NOBLOGREDIRECT ) ) ) { |
|---|
| 24 | - if ( $destination == '%siteurl%' ) |
|---|
| 25 | - $destination = network_home_url(); |
|---|
| 26 | - wp_redirect( $destination ); |
|---|
| 27 | - exit(); |
|---|
| 28 | - } |
|---|
| 29 | -} |
|---|
| 30 | - |
|---|
| 31 | function maybe_add_existing_user_to_blog() { |
|---|
| 32 | if ( false === strpos( $_SERVER[ 'REQUEST_URI' ], '/newbloguser/' ) ) |
|---|
| 33 | return false; |
|---|