[buddypress-trac] [BuddyPress Trac] #6225: Naming of Body Classes: 'my-profile' & 'my-account'

buddypress-trac noreply at wordpress.org
Tue Feb 17 22:40:40 UTC 2015

#6225: Naming of Body Classes: 'my-profile' & 'my-account'
 Reporter:  landwire          |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Component - Core  |    Version:  2.1
 Severity:  minor             |   Keywords:
 What is the difference between these 2 body classes? Do we need them both?
 Or should 'my-account' account be renamed to 'my-profile' and the old 'my-
 profile' class taken out or renamed to 'profile'? But there is another
 'profile' class created from the xprofile component.

 To me it does not make any sense to look at someone elses profile and see
 the 'my-profile' class displayed. It is very counterintuitive.

 See: bp-core-template.php

 if ( bp_is_my_profile() ) {
                         $bp_classes[] = 'my-account';

                 if ( bp_is_user_profile() ) {
                         $bp_classes[] = 'my-profile';


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

More information about the buddypress-trac mailing list