Skip to:

Opened 7 years ago

Closed 7 years ago

#7441 closed defect (bug) (fixed)

`_bp_rehook_maybe_redirect_404()` should check if multisite is enabled

Reported by: r-a-y's profile r-a-y Owned by: r-a-y's profile r-a-y
Milestone: 2.9 Priority: normal
Severity: normal Version: 1.6.1
Component: Core Keywords: has-patch



If NOBLOGREDIRECT is defined, we attempt to use multisite's maybe_redirect_404() function. This function is only available when multisite is on, so we should probably add an is_multisite() check to safeguard against any potential notices.

Attachments (1)

7441.01.patch (539 bytes) - added by r-a-y 7 years ago.

Download all attachments as: .zip

Change History (3)

7 years ago

#1 @r-a-y
7 years ago

  • Milestone changed from Awaiting Review to 2.9

Moving this to 2.9 as this is relatively straightforward.

#2 @r-a-y
7 years ago

  • Owner set to r-a-y
  • Resolution set to fixed
  • Status changed from new to closed

In 11599:

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.

Note: See TracTickets for help on using tickets.