Skip to:
Content

BuddyPress.org

Ticket #7441: 7441.01.patch

File 7441.01.patch, 539 bytes (added by r-a-y, 5 years ago)
  • src/bp-core/bp-core-catchuri.php

     
    996996 * @link https://buddypress.trac.wordpress.org/ticket/4415
    997997 */
    998998function _bp_rehook_maybe_redirect_404() {
    999         if ( defined( 'NOBLOGREDIRECT' ) ) {
     999        if ( defined( 'NOBLOGREDIRECT' ) && is_multisite() ) {
    10001000                remove_action( 'template_redirect', 'maybe_redirect_404' );
    10011001                add_action( 'template_redirect', 'maybe_redirect_404', 100 );
    10021002        }