Make WordPress Core

Ticket #51256: 51256.includes-update-core.diff

File 51256.includes-update-core.diff, 1.3 KB (added by sabernhardt, 4 years ago)

option with both the plugins page and the update-core page

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

     
    948948                $requires_php   = isset( $plugin_data['requires_php'] ) ? $plugin_data['requires_php'] : null;
    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_id_attr );
    952952
    953953                if ( $restrict_network_active || $restrict_network_only || in_array( $status, array( 'mustuse', 'dropins' ), true ) || ! $compatible_php ) {
    954954                        $checkbox = '';
  • src/wp-admin/update-core.php

     
    545545                        sprintf( __( 'View version %s details.' ), $plugin_data->update->new_version )
    546546                );
    547547
    548                 $checkbox_id = 'checkbox_' . md5( $plugin_data->Name );
     548                $checkbox_id = 'checkbox_' . md5( $plugin_file );
    549549                ?>
    550550        <tr>
    551551                <td class="check-column">