[buddypress-trac] [BuddyPress Trac] #8129: Custom BP_FRIENDS_SLUG won't work anymore to display someone friends activities

buddypress-trac noreply at wordpress.org
Wed Aug 21 22:25:41 UTC 2019


#8129: Custom BP_FRIENDS_SLUG won't work anymore to display someone friends
activities
--------------------------+------------------------------
 Reporter:  Maniou        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Activity      |     Version:  4.3.0
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by Maniou):

 I guess the problem is relative to Late includes method in class-bp-
 activity-component.php

 Specially to this part :

 line 128 :

 {{{#!php
 if ( bp_is_user() && in_array( bp_current_action(), array( 'friends',
 'groups', 'favorites', 'mentions' ), true ) ) {
 require $this->path . 'bp-activity/screens/' . bp_current_action() .
 '.php';
 }
 }}}


 when accessing https://domain.com/members/dupond/activity/amis/
 **bp_current_action()** is equal to "amis"
 and the code can't get the screen bp-activity/screens/friends.php to load

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8129#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list