Changeset 11370
- Timestamp:
- 05/16/2009 10:32:48 PM (16 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r11342 r11370 2286 2286 $trans['delete']['users'] = array( __( 'Your attempt to delete users has failed.' ), false ); 2287 2287 $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' ); 2290 2290 2291 2291 $trans['update']['options'] = array( __( 'Your attempt to edit your settings has failed.' ), false ); … … 2300 2300 if ( !empty( $trans[$verb][$noun][1] ) ) { 2301 2301 $lookup = $trans[$verb][$noun][1]; 2302 if ( isset($trans[$verb][$noun][2]) ) 2303 $lookup_value = $trans[$verb][$noun][2]; 2302 2304 $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 } 2305 2311 return sprintf( $trans[$verb][$noun][0], wp_specialchars($object) ); 2306 2312 } else { -
trunk/wp-includes/general-template.php
r11347 r11370 1487 1487 $author_id = intval( get_query_var('author') ); 1488 1488 1489 $title = esc_attr(sprintf( $args['authortitle'], get_bloginfo('name'), $args['separator'], get_ author_name($author_id ) ));1489 $title = esc_attr(sprintf( $args['authortitle'], get_bloginfo('name'), $args['separator'], get_the_author_meta( 'display_name', $author_id ) )); 1490 1490 $href = get_author_feed_link( $author_id ); 1491 1491 } elseif ( is_search() ) { -
trunk/wp-includes/post-template.php
r11306 r11370 1242 1242 * @uses wp_post_revision_title() 1243 1243 * @uses get_edit_post_link() 1244 * @uses get_ author_name()1244 * @uses get_the_author_meta() 1245 1245 * 1246 1246 * @todo split into two functions (list, form-table) ? … … 1287 1287 1288 1288 $date = wp_post_revision_title( $revision ); 1289 $name = get_ author_name($revision->post_author );1289 $name = get_the_author_meta( 'display_name', $revision->post_author ); 1290 1290 1291 1291 if ( 'form-table' == $format ) {
Note: See TracChangeset
for help on using the changeset viewer.