[buddypress-trac] [BuddyPress] #4940: bp_is_current_action() not working for groups if using page name other than 'groups'

buddypress-trac noreply at wordpress.org
Tue Apr 16 17:00:05 UTC 2013


#4940: bp_is_current_action() not working for groups if using page name other than
'groups'
--------------------------+-----------------------------
 Reporter:  rogercoathup  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  1.7
 Severity:  major         |   Keywords:
--------------------------+-----------------------------
 bp_is_current_action() isn't working when the Groups slug / page name is
 changed to something other than the default 'groups'.

 i.e. with the page name for Groups set to  'Groups', the function works
 correctly -

 bp_is_current_action('follow') correctly returns true for the URL:
 http://testing.mysite.com/groups/test-group/follow

 But, with the page name / slug for Groups set to 'xyz', it doesn't work
 correctly -

 bp_is_current_action('follow') incorrectly returns false for the URL:
 http://testing.mysite.com/xyz/test-group/follow


 Notes:
 1. This problem only seems to have arisen in the late beta / full release
 of BP1.7, and I believe was working correctly previously
 2. bp_is_groups_component() still works correctly with the slug / page
 name at both default of 'groups' and when set to 'xyz'

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


More information about the buddypress-trac mailing list