Users: After [41027], assign $author_posts_url outside of the condition to simplify the logic.

See #38085.
Built from https://develop.svn.wordpress.org/trunk@41180


git-svn-id: http://core.svn.wordpress.org/trunk@41020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-07-28 14:21:45 +00:00
parent 18fd50d2b6
commit acb9773212
2 changed files with 3 additions and 2 deletions

View File

@ -417,7 +417,8 @@ class WP_Users_List_Table extends WP_List_Table {
$actions['remove'] = "<a class='submitdelete' href='" . wp_nonce_url( $url."action=remove&amp;user=$user_object->ID", 'bulk-users' ) . "'>" . __( 'Remove' ) . "</a>";
// Add a link to the user's author archive, if not empty.
if ( $author_posts_url = get_author_posts_url( $user_object->ID ) ) {
$author_posts_url = get_author_posts_url( $user_object->ID );
if ( $author_posts_url ) {
$actions['view'] = sprintf(
'<a href="%s" aria-label="%s">%s</a>',
esc_url( $author_posts_url ),

View File

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