Make WordPress Core


Ignore:
Timestamp:
11/17/2020 04:46:30 PM (3 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.

File:
1 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_file );
    952952
    953953        if ( $restrict_network_active || $restrict_network_only || in_array( $status, array( 'mustuse', 'dropins' ), true ) || ! $compatible_php ) {
Note: See TracChangeset for help on using the changeset viewer.