#3334 closed defect (bug) (fixed)
is_bbpress() should check if WordPress is initialized first
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.6.5 | Priority: | normal |
Severity: | normal | Version: | 2.0 |
Component: | API | Keywords: | has-patch |
Cc: |
Description
A fatal error will occur when attempting to use is_bbpress()
before the main query is initialized.
I ran into this when using the is_bbpress()
function inside a filter that runs before and after the main query is executed.
is_bbpress()
should follow other similar WordPress conditional query functions like is_archive()
so a fatal error does not occur.
Attached is a patch that uses the same WP logic.
Attachments (2)
Change History (7)
Note: See
TracTickets for help on using
tickets.
In 7066: