WordPress.org

Make WordPress Core

Ticket #23312: 23312.no_bulk_edit_hidden.diff

File 23312.no_bulk_edit_hidden.diff, 533 bytes (added by dh-shredder, 8 years ago)

Don't check hidden checkboxes on bulk select/deselect.

  • wp-admin/js/common.js

    diff --git wp-admin/js/common.js wp-admin/js/common.js
    index 0f6b84d..b807066 100644
    $(document).ready( function() { 
    305305                        toggle = e.shiftKey || kbtoggle;
    306306
    307307                $(this).closest( 'table' ).children( 'tbody' ).filter(':visible')
    308                 .children().children('.check-column').find(':checkbox')
     308                .children().children('.check-column').find(':checkbox').filter(':visible')
    309309                .prop('checked', function() {
    310310                        if ( $(this).closest('tr').is(':hidden') )
    311311                                return false;