mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
43fc92e4a9
commit
96d944bcfc
@ -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&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 ),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user