[buddypress-trac] [BuddyPress] #3399: Audit usage of bp_is_current_component()

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Aug 30 05:58:29 UTC 2011


#3399: Audit usage of bp_is_current_component()
------------------------------+------------------
 Reporter:  r-a-y             |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  1.5
Component:  Core              |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------

Comment (by cnorris23):

 Replacing
 {{{!bp_is_current_component( 'activity' ) || !bp_is_user()}}}

 with
 {{{!bp_is_user_activity()}}}

 won't work, as bp_is_user_activity() is only a wrapper function for
 bp_is_current_component( 'activity' ).

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


More information about the buddypress-trac mailing list