Changes between Initial Version and Version 1 of Ticket #2945, comment 14
- Timestamp:
- 06/13/2012 10:13:06 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2945, comment 14
initial v1 1 1 I understand you weren't suggesting it directly, but changing the buddypress class to be a singleton is beyond the scope of this ticket. There were some concerns about backwards compatibility with such a change, and it's not something we're going to investigate for 1.6. 2 2 3 On topic: a better approach would be to put that add_action into a function hooked to bp_init, and then we can access BP's global for the base pa seand append 'bp-loader.php' to it. Your suggestion basically just encapsulates the $bp global, and I don't think there's much benefit in swapping out "global $bp" to bp_get_global_property(...) everywhere.3 On topic: a better approach would be to put that add_action into a function hooked to bp_init, and then we can access BP's global for the base path and append 'bp-loader.php' to it. Your suggestion basically just encapsulates the $bp global, and I don't think there's much benefit in swapping out "global $bp" to bp_get_global_property(...) everywhere.