Opened 14 years ago
Closed 14 years ago
#2718 closed enhancement (fixed)
Swap function_exists() calls to bp_is_active()
Reported by: | DJPaul | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | Version: | ||
Component: | Core | Keywords: | |
Cc: | peter.westwood+buddypresstrac@… |
Description (last modified by )
Trunk currently has a mixture of function_exists() (on different function names) and bp_is_active() checks to decide if a certain part of BuddyPress is loaded. bp_is_active() was added earlier this year to eventually replace the function_exists() checks, if I remember correctly.
We should standardise on one for BuddyPress 1.3, so that core is more consistent. I suggest bp_is_active() as it prevents any third-party themes or plugins checking for the presence of functions which could possibly be removed or deprecated.
Brevity is the root of all bad trac tickets :-)
Why?