Make WordPress Core


Ignore:
Timestamp:
05/23/2017 05:57:42 PM (8 years ago)
Author:
afercia
Message:

Administration: Fix some HTML validation errors.

Fixes some minor HTML issues in the admin and, most notably, changes the rel
attribute used in the List Tables from rel="permalink" to rel="bookmark".

Props mihai2u, pento, arena, topher1kenobe, michalzuber, stubgo.
Fixes #37004.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-users-list-table.php

    r39757 r40823  
    259259    protected function extra_tablenav( $which ) {
    260260        $id = 'bottom' === $which ? 'new_role2' : 'new_role';
     261        $button_id = 'bottom' === $which ? 'changeit2' : 'changeit';
    261262    ?>
    262263    <div class="alignleft actions">
     
    268269        </select>
    269270    <?php
    270             submit_button( __( 'Change' ), '', 'changeit', false );
     271            submit_button( __( 'Change' ), '', $button_id, false );
    271272        endif;
    272273
     
    296297     */
    297298    public function current_action() {
    298         if ( isset( $_REQUEST['changeit'] ) &&
     299        if ( ( isset( $_REQUEST['changeit'] ) || isset( $_REQUEST['changeit2'] ) ) &&
    299300            ( ! empty( $_REQUEST['new_role'] ) || ! empty( $_REQUEST['new_role2'] ) ) ) {
    300301            return 'promote';
Note: See TracChangeset for help on using the changeset viewer.