[buddypress-trac] [BuddyPress Trac] #5838: Remove "Profile" from Member page title

buddypress-trac noreply at wordpress.org
Wed Dec 17 20:50:39 UTC 2014


#5838: Remove "Profile" from Member page title
--------------------------+-----------------------
 Reporter:  sooskriszta   |       Owner:  djpaul
     Type:  enhancement   |      Status:  reopened
 Priority:  normal        |   Milestone:  2.2
Component:  Text Changes  |     Version:  2.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------

Comment (by r-a-y):

 `ucwords()` was taken from the older title implementation.  Just did a
 copypasta :)

 But, you do have a legit point about `ucwords()` being utf-8-compatible.

 In the current patch, I think if we change:

 `$component_name = $bp->{$component_id}->id;`

 to:

 `$component_name = ucwords( $bp->{$component_id}->id );`

 And remove the other `ucwords()` calls, we should be safe.  It's very rare
 that the BP nav will not have a name attached to it.

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


More information about the buddypress-trac mailing list