Making WordPress.org

Changeset 1878


Ignore:
Timestamp:
09/14/2015 07:39:01 PM (9 years ago)
Author:
coffee2code
Message:

Credits API: Don't unnecessarily utf8_encode() user display_name.

Fixes #117.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/core/credits/wp-credits.php

    r1829 r1878  
    167167                continue;
    168168            if ( $user->display_name && $user->display_name != $user->user_nicename && false === strpos( $user->display_name , '?') )
    169                 $translators[ $user->user_nicename ] = utf8_encode( remove_accents( $user->display_name ) );
     169                $translators[ $user->user_nicename ] = remove_accents( $user->display_name );
    170170            else
    171171                $translators[ $user->user_nicename ] = $user->user_nicename;
     
    190190                continue;
    191191            if ( $user->display_name && $user->display_name != $user->user_nicename && false === strpos( $user->display_name , '?') )
    192                 $validators[ $user->user_nicename ] = array( utf8_encode( remove_accents( $user->display_name ) ), md5( $user->user_email ), $user->user_nicename );
     192                $validators[ $user->user_nicename ] = array( remove_accents( $user->display_name ), md5( $user->user_email ), $user->user_nicename );
    193193            else
    194194                $validators[ $user->user_nicename ] = array( $user->user_nicename, md5( $user->user_email ), $user->user_nicename );
     
    319319        foreach ( $user_data as $user ) {
    320320            if ( $user->display_name && $user->display_name != $user->user_nicename && false === strpos( $user->display_name , '?') )
    321                 $props[ $user->user_nicename ] = utf8_encode( remove_accents( $user->display_name ) );
     321                $props[ $user->user_nicename ] = remove_accents( $user->display_name );
    322322            else
    323323                $props[ $user->user_nicename ] = $user->user_nicename;
Note: See TracChangeset for help on using the changeset viewer.