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.
Built from https://develop.svn.wordpress.org/trunk@49631


git-svn-id: http://core.svn.wordpress.org/trunk@49369 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-11-17 16:48:09 +00:00
parent 7860b364fe
commit f97647c207
3 changed files with 3 additions and 3 deletions

View File

@ -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 = '';

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">

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.6-beta4-49630';
$wp_version = '5.6-beta4-49631';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.