[buddypress-trac] [BuddyPress Trac] #5489: Symlinked 'buddypress' directory not referenced when setting buddypress()->file

buddypress-trac noreply at wordpress.org
Sat Mar 29 18:24:48 UTC 2014


#5489: Symlinked 'buddypress' directory not referenced when setting
buddypress()->file
--------------------------+-----------------------------
 Reporter:  r-a-y         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  1.6
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 If we are manually defining the `BP_PLUGIN_DIR` constant for symlinking
 purposes, `buddypress()->file` does not take this into consideration.

 This notably breaks the `bp_is_network_activated()` function because
 `buddypress()->basename` references `__FILE__` instead of the symlinked
 directory.

 To test:
 - Set up a new multisite install with the 'buddypress' directory
 symlinked.
 - Network-activate BuddyPress and go to the network admin dashboard
 - You won't see the following items: "Settings > BuddyPress", "Tools >
 BuddyPress"

 Attached patch addresses this by setting `buddypress()->file` to use the
 `BP_PLUGIN_DIR` constant.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5489>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list