Make WordPress Core

Changeset 49631

Timestamp:
11/17/2020 04:46:30 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Plugins: Make sure the HTML ID attributes for plugin checkboxes are unique.

Follow-up to [48374].

Props helen, sabernhardt, kishanjasani, mukesh27, hareesh-pillai.
Fixes #51256.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

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

    r49582 r49631  
    949949        $compatible_php = is_php_version_compatible( $requires_php );
    950950        $class          = $is_active ? 'active' : 'inactive';
    951         $checkbox_id    = 'checkbox_' . md5( $plugin_data['Name'] );
     951        $checkbox_id    = 'checkbox_' . md5( $plugin_ );
    952952
    953953        if ( $restrict_network_active || $restrict_network_only || in_array( $status, array( 'mustuse', 'dropins' ), true ) || ! $compatible_php ) {
  • trunk/src/wp-admin/update-core.php

    r49593 r49631  
    546546        );
    547547
    548         $checkbox_id = 'checkbox_' . md5( $plugin_data->Name );
     548        $checkbox_id = 'checkbox_' . md5( $plugin_e );
    549549        ?>
    550550    <tr>
Note: See TracChangeset for help on using the changeset viewer.