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

See #38085.

git-svn-id: https://develop.svn.wordpress.org/trunk@41180 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2017-07-28 14:20:22 +00:00
parent 43fc92e4a9
commit 96d944bcfc

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 ),