Users: After [42256], remove unnecessary double quotes around `first_name` and `last_name` properties.
See #42713. git-svn-id: https://develop.svn.wordpress.org/trunk@42257 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c52f6ba995
commit
63f8e4d122
|
@ -266,10 +266,10 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
|||
public function column_name( $user ) {
|
||||
if ( $user->first_name && $user->last_name ) {
|
||||
echo "$user->first_name $user->last_name";
|
||||
} else if ( ! empty( $user->first_name ) ) {
|
||||
echo "$user->first_name";
|
||||
} else if ( ! empty( $user->last_name ) ) {
|
||||
echo "$user->last_name";
|
||||
} elseif ( $user->first_name ) {
|
||||
echo $user->first_name;
|
||||
} elseif ( $user->last_name ) {
|
||||
echo $user->last_name;
|
||||
} else {
|
||||
echo '<span aria-hidden="true">—</span><span class="screen-reader-text">' . _x( 'Unknown', 'name' ) . '</span>';
|
||||
}
|
||||
|
|
|
@ -488,10 +488,10 @@ class WP_Users_List_Table extends WP_List_Table {
|
|||
case 'name':
|
||||
if ( $user_object->first_name && $user_object->last_name ) {
|
||||
$r .= "$user_object->first_name $user_object->last_name";
|
||||
} else if ( ! empty( $user_object->first_name ) ) {
|
||||
$r .= "$user_object->first_name";
|
||||
} else if ( ! empty( $user_object->last_name) ) {
|
||||
$r .= "$user_object->last_name";
|
||||
} elseif ( $user_object->first_name ) {
|
||||
$r .= $user_object->first_name;
|
||||
} elseif ( $user_object->last_name ) {
|
||||
$r .= $user_object->last_name;
|
||||
} else {
|
||||
$r .= '<span aria-hidden="true">—</span><span class="screen-reader-text">' . _x( 'Unknown', 'name' ) . '</span>';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue