Users: After [42256], remove unnecessary double quotes around `first_name` and `last_name` properties.

See #42713.
Built from https://develop.svn.wordpress.org/trunk@42257


git-svn-id: http://core.svn.wordpress.org/trunk@42086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-11-29 15:28:53 +00:00
parent 05d60f74ed
commit ca6f54cfce
3 changed files with 9 additions and 9 deletions

View File

@ -266,10 +266,10 @@ class WP_MS_Users_List_Table extends WP_List_Table {
public function column_name( $user ) { public function column_name( $user ) {
if ( $user->first_name && $user->last_name ) { if ( $user->first_name && $user->last_name ) {
echo "$user->first_name $user->last_name"; echo "$user->first_name $user->last_name";
} else if ( ! empty( $user->first_name ) ) { } elseif ( $user->first_name ) {
echo "$user->first_name"; echo $user->first_name;
} else if ( ! empty( $user->last_name ) ) { } elseif ( $user->last_name ) {
echo "$user->last_name"; echo $user->last_name;
} else { } else {
echo '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . _x( 'Unknown', 'name' ) . '</span>'; echo '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . _x( 'Unknown', 'name' ) . '</span>';
} }

View File

@ -488,10 +488,10 @@ class WP_Users_List_Table extends WP_List_Table {
case 'name': case 'name':
if ( $user_object->first_name && $user_object->last_name ) { if ( $user_object->first_name && $user_object->last_name ) {
$r .= "$user_object->first_name $user_object->last_name"; $r .= "$user_object->first_name $user_object->last_name";
} else if ( ! empty( $user_object->first_name ) ) { } elseif ( $user_object->first_name ) {
$r .= "$user_object->first_name"; $r .= $user_object->first_name;
} else if ( ! empty( $user_object->last_name) ) { } elseif ( $user_object->last_name ) {
$r .= "$user_object->last_name"; $r .= $user_object->last_name;
} else { } else {
$r .= '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . _x( 'Unknown', 'name' ) . '</span>'; $r .= '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . _x( 'Unknown', 'name' ) . '</span>';
} }

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.0-alpha-42256'; $wp_version = '5.0-alpha-42257';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.