WordPress.org

Make WordPress Core

Ticket #38085: 38085.4.patch

File 38085.4.patch, 1.1 KB (added by Girishpanchal, 3 years ago)
  • src/wp-admin/includes/class-wp-users-list-table.php

     
    409409                                $edit = "<strong>$user_object->user_login</strong><br />";
    410410                        }
    411411
     412                        // Check get author post url is not empty and add the view user link on user listing page.
     413                        if ( ! empty( get_author_posts_url( $user_object->ID ) ) && $author_posts_url = get_author_posts_url( $user_object->ID ) ) {
     414                                $view_link = esc_url( $author_posts_url );
     415                                $actions['view'] = '<a href="' . $view_link . '">' . __( 'View' ) . '</a>';
     416                        }
     417
    412418                        if ( !is_multisite() && get_current_user_id() != $user_object->ID && current_user_can( 'delete_user', $user_object->ID ) )
    413419                                $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url( "users.php?action=delete&amp;user=$user_object->ID", 'bulk-users' ) . "'>" . __( 'Delete' ) . "</a>";
    414420                        if ( is_multisite() && get_current_user_id() != $user_object->ID && current_user_can( 'remove_user', $user_object->ID ) )