Skip to:
Content

BuddyPress.org

Changeset 11599


Ignore:
Timestamp:
06/21/2017 09:07:03 PM (8 years ago)
Author:
r-a-y
Message:

Fix potential notice when NOBLOGREDIRECT is defined and install is not using multisite.

maybe_redirect_404() is a multisite function, so we should only attempt
to call it if we're on a multisite installation.

Props juanho.

Fixes #7441.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-catchuri.php

    r11281 r11599  
    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 );
Note: See TracChangeset for help on using the changeset viewer.