WordPress.org

Make WordPress Core

Ticket #38085: 38085.patch

File 38085.patch, 951 bytes (added by ryanplas, 3 years ago)
  • src/wp-admin/includes/class-wp-users-list-table.php

     
    413413                        if ( is_multisite() && get_current_user_id() != $user_object->ID && current_user_can( 'remove_user', $user_object->ID ) )
    414414                                $actions['remove'] = "<a class='submitdelete' href='" . wp_nonce_url( $url."action=remove&amp;user=$user_object->ID", 'bulk-users' ) . "'>" . __( 'Remove' ) . "</a>";
    415415
     416                        // Set up the view user link
     417                        $view_link = esc_url(add_query_arg('wp_http_referer', urlencode(wp_unslash($_SERVER['REQUEST_URI'])), get_author_posts_url($user_object->ID)));
     418                        $actions['view'] = '<a href="' . $view_link . '">' . __('View') . '</a>';
     419
    416420                        /**
    417421                         * Filters the action links displayed under each user in the Users list table.
    418422                         *