Changeset 24042 for trunk/wp-admin/includes/misc.php
- Timestamp:
- 04/22/2013 03:08:51 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/misc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/misc.php
r23683 r24042 575 575 576 576 if ( current_user_can( 'edit_post', $post_id ) && ( $user_id = wp_check_post_lock( $post_id ) ) && ( $user = get_userdata( $user_id ) ) ) { 577 $send = array( );577 $send = array( 'text' => sprintf( __( '%s is currently editing' ), $user->display_name ) ); 578 578 579 579 if ( ( $avatar = get_avatar( $user->ID, 18 ) ) && preg_match( "|src='([^']+)'|", $avatar, $matches ) ) 580 580 $send['avatar_src'] = $matches[1]; 581 581 582 $send['text'] = sprintf( __( '%s is currently editing' ), $user->display_name );583 582 $checked[$key] = $send; 584 583 } … … 609 608 return $response; 610 609 611 if ( $user_id = wp_check_post_lock( $post_id ) ) { 612 $user = get_userdata( $user_id ); 613 610 if ( ( $user_id = wp_check_post_lock( $post_id ) ) && ( $user = get_userdata( $user_id ) ) ) { 614 611 $error = array( 615 612 'text' => sprintf( __( '%s has taken over and is currently editing.' ), $user->display_name )
Note: See TracChangeset
for help on using the changeset viewer.