Definition:
function maybe_redirect_404() {}
Correct 404 redirects when NOBLOGREDIRECT is defined.
Defined filters
- blog_redirect_404
apply_filters( 'blog_redirect_404', NOBLOGREDIRECT )
Source code
function maybe_redirect_404() { global $current_site; if ( is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && ( $destination = apply_filters( 'blog_redirect_404', NOBLOGREDIRECT ) ) ) { if ( $destination == '%siteurl%' ) $destination = network_home_url(); wp_redirect( $destination ); exit(); } }
2335
No comments yet... Be the first to leave a reply!