Make WordPress Core

Ticket #51256: 51256.2.patch

File 51256.2.patch, 821 bytes (added by mukesh27, 3 years ago)

Patch with different solution.

  • src/wp-admin/includes/class-wp-plugins-list-table.php

     
    946946                $requires_php   = isset( $plugin_data['requires_php'] ) ? $plugin_data['requires_php'] : null;
    947947                $compatible_php = is_php_version_compatible( $requires_php );
    948948                $class          = $is_active ? 'active' : 'inactive';
    949                 $checkbox_id    = 'checkbox_' . md5( $plugin_data['Name'] );
     949                $checkbox_id    = 'checkbox_' . md5( $plugin_id_attr );
    950950                if ( $restrict_network_active || $restrict_network_only || in_array( $status, array( 'mustuse', 'dropins' ), true ) || ! $compatible_php ) {
    951951                        $checkbox = '';
    952952                } else {