Opened 16 years ago
Closed 15 years ago
#2718 closed enhancement (fixed)
Swap function_exists() calls to bp_is_active()
| Reported by: | DJPaul | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5 |
| Component: | Core | Version: | |
| Severity: | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Brevity is the root of all bad trac tickets :-)
Why?