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.

git-svn-id: https://develop.svn.wordpress.org/trunk@49631 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-11-17 16:46:30 +00:00
parent 22e4cb5266
commit 62d0303bb1
2 changed files with 2 additions and 2 deletions
@@ -948,7 +948,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
$requires_php = isset( $plugin_data['requires_php'] ) ? $plugin_data['requires_php'] : null;
$compatible_php = is_php_version_compatible( $requires_php );
$class = $is_active ? 'active' : 'inactive';
$checkbox_id = 'checkbox_' . md5( $plugin_data['Name'] );
$checkbox_id = 'checkbox_' . md5( $plugin_file );
if ( $restrict_network_active || $restrict_network_only || in_array( $status, array( 'mustuse', 'dropins' ), true ) || ! $compatible_php ) {
$checkbox = '';
+1 -1
View File
@@ -545,7 +545,7 @@ function list_plugin_updates() {
sprintf( __( 'View version %s details.' ), $plugin_data->update->new_version )
);
$checkbox_id = 'checkbox_' . md5( $plugin_data->Name );
$checkbox_id = 'checkbox_' . md5( $plugin_file );
?>
<tr>
<td class="check-column">