Changeset 19284
- Timestamp:
- 11/14/2011 09:35:44 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-header.php
r18982 r19284 13 13 // In case admin-header.php is included in a function. 14 14 global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $wp_version, $is_iphone, 15 $ user_identity, $current_site, $update_title, $total_update_count, $parent_file;15 $current_site, $update_title, $total_update_count, $parent_file; 16 16 17 17 get_admin_page_title(); -
trunk/wp-includes/admin-bar.php
r19265 r19284 135 135 */ 136 136 function wp_admin_bar_my_account_menu( $wp_admin_bar ) { 137 global $user_identity;138 139 137 $user_id = get_current_user_id(); 140 138 $current_user = wp_get_current_user(); … … 142 140 143 141 if ( 0 != $user_id ) { 144 /* Add the 'My Account'menu */142 /* Add the "My Account" menu */ 145 143 $avatar = get_avatar( $user_id, 28 ); 146 $howdy = sprintf( __('Howdy, %1$s'), $ user_identity);144 $howdy = sprintf( __('Howdy, %1$s'), $current_user->display_name ); 147 145 $class = empty( $avatar ) ? '' : 'with-avatar'; 148 146 -
trunk/wp-includes/comment-template.php
r18633 r19284 1509 1509 */ 1510 1510 function comment_form( $args = array(), $post_id = null ) { 1511 global $ user_identity, $id;1511 global $id; 1512 1512 1513 1513 if ( null === $post_id ) … … 1517 1517 1518 1518 $commenter = wp_get_current_commenter(); 1519 $user = wp_get_current_user(); 1520 $user_identity = ! empty( $user->ID ) ? $user->display_name : ''; 1519 1521 1520 1522 $req = get_option( 'require_name_email' );
Note: See TracChangeset
for help on using the changeset viewer.