[buddypress-trac] [BuddyPress] #2945: Don't hard-code the 'buddypress' plugin folder

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Jun 13 10:11:31 UTC 2012


#2945: Don't hard-code the 'buddypress' plugin folder
--------------------------+------------------
 Reporter:  cnorris23     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  1.6
Component:  Core          |     Version:  1.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by DJPaul):

 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.

 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 pase 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.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/2945#comment:14>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list