WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/16/2009 10:32:48 PM (12 years ago)
Author:
westi
Message:

Migrate final get_author_name() calls to use get_the_author_meta() instead. See #9393 props sivel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r11342 r11370  
    22862286        $trans['delete']['users']      = array( __( 'Your attempt to delete users has failed.' ), false );
    22872287        $trans['bulk']['users']        = array( __( 'Your attempt to bulk modify users has failed.' ), false );
    2288         $trans['update']['user']       = array( __( 'Your attempt to edit this user: “%s” has failed.' ), 'get_author_name' );
    2289         $trans['update']['profile']    = array( __( 'Your attempt to modify the profile for: “%s” has failed.' ), 'get_author_name' );
     2288        $trans['update']['user']       = array( __( 'Your attempt to edit this user: “%s” has failed.' ), 'get_the_author_meta', 'display_name' );
     2289        $trans['update']['profile']    = array( __( 'Your attempt to modify the profile for: “%s” has failed.' ), 'get_the_author_meta', 'display_name' );
    22902290
    22912291        $trans['update']['options']    = array( __( 'Your attempt to edit your settings has failed.' ), false );
     
    23002300            if ( !empty( $trans[$verb][$noun][1] ) ) {
    23012301                $lookup = $trans[$verb][$noun][1];
     2302                if ( isset($trans[$verb][$noun][2]) )
     2303                    $lookup_value = $trans[$verb][$noun][2];
    23022304                $object = $matches[4];
    2303                 if ( 'use_id' != $lookup )
    2304                     $object = call_user_func( $lookup, $object );
     2305                if ( 'use_id' != $lookup ) {
     2306                    if ( isset( $lookup_value ) )
     2307                        $object = call_user_func( $lookup, $lookup_value, $object );
     2308                    else
     2309                        $object = call_user_func( $lookup, $object );
     2310                }
    23052311                return sprintf( $trans[$verb][$noun][0], wp_specialchars($object) );
    23062312            } else {
Note: See TracChangeset for help on using the changeset viewer.