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

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Dec 20 20:44:24 UTC 2010


#2945: Don't hard-code the 'buddypress' plugin folder
------------------------+-----------------------------
  Reporter:  cnorris23  |      Owner:
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:  Awaiting Review
 Component:  Core       |    Version:  1.3
Resolution:             |   Keywords:  has-patch
------------------------+-----------------------------

Comment (by cnorris23):

 I agree that most won't change, or need to change, the BP folder name.
 Therefore, I have no use case. The reason I made the patch is that WP way
 is to not hard-code the plugin folder. I can't remember where I read that
 at the moment, but it is how WP devs and official WP/Automattic plugins
 handle plugin paths. According to
 [http://codex.wordpress.org/Determining_Plugin_and_Content_Directories
 Determining Plugin and Content Directories], the way BP currently handles
 this is minimal, but sufficient. I only thought to do this because it was
 getting difficult to manage numerous SVN checkouts all named 'buddypress'
 in my SVN client. The majority of the patch, excluding the white space
 cleanup that resulted on file save, is removing a backslash and/or the
 'buddypress' folder name. If you'd like to see it without all the white
 space cruft, I can do that.

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


More information about the buddypress-trac mailing list