Skip to:
Content

BuddyPress.org

Changeset 1044


Ignore:
Timestamp:
02/09/2009 10:11:23 PM (16 years ago)
Author:
apeatling
Message:

Fixes #460

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r1032 r1044  
    12811281
    12821282/**
     1283 * bp_core_ucfirst()
     1284 *
     1285 * Localization save ucfirst() support.
     1286 *
     1287 * @package BuddyPress Core
     1288 */
     1289function bp_core_ucfirst( $str ) {
     1290    $fc = mb_strtoupper(mb_substr($str, 0, 1));
     1291    return $fc.mb_substr($str, 1);
     1292}
     1293
     1294/**
    12831295 * bp_core_clear_cache()
    12841296 * REQUIRES WP-SUPER-CACHE
  • trunk/bp-core/bp-core-templatetags.php

    r1032 r1044  
    240240            $data = $ud->display_name;
    241241        } else {
    242             $data = ucfirst($data);
     242            $data = bp_core_ucfirst($data);
    243243        }
    244244    } else {
     
    312312   
    313313    if ( $capitalize )
    314         $youtext = ucfirst($youtext);
     314        $youtext = bp_core_ucfirst($youtext);
    315315   
    316316    if ( $bp->displayed_user->id == $bp->loggedin_user->id ) {
     
    332332   
    333333    if ( $capitalize )
    334         $yourtext = ucfirst($yourtext);
     334        $yourtext = bp_core_ucfirst($yourtext);
    335335   
    336336    if ( $bp->displayed_user->id == $bp->loggedin_user->id ) {
Note: See TracChangeset for help on using the changeset viewer.