Ticket #40628: 40628.patch
File 40628.patch, 1.6 KB (added by , 7 years ago) |
---|
-
src/wp-admin/includes/class-wp-users-list-table.php
372 372 * @since 4.4.0 The `$role` parameter was deprecated. 373 373 * @access public 374 374 * 375 * @param object$user_object The current user object.376 * @param string $style Deprecated. Not used.377 * @param string $role Deprecated. Not used.378 * @param int $numposts Optional. Post count to display for this user. Defaults379 * to zero, as in, a new user has made zero posts.375 * @param WP_User $user_object The current user object. 376 * @param string $style Deprecated. Not used. 377 * @param string $role Deprecated. Not used. 378 * @param int $numposts Optional. Post count to display for this user. Defaults 379 * to zero, as in, a new user has made zero posts. 380 380 * @return string Output for a single row. 381 381 */ 382 382 public function single_row( $user_object, $style = '', $role = '', $numposts = 0 ) { … … 470 470 $r .= "$avatar $edit"; 471 471 break; 472 472 case 'name': 473 $r .= "$user_object->first_name $user_object->last_name"; 473 if ( ! empty( $user_object->first_name ) || ! empty( $user_object->last_name ) ) { 474 $r .= "$user_object->first_name $user_object->last_name"; 475 } else { 476 $r .= "—"; 477 } 474 478 break; 475 479 case 'email': 476 480 $r .= "<a href='" . esc_url( "mailto:$email" ) . "'>$email</a>";