From c8586336d1dee2181af2c2c17ec781c72f2e05c2 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 25 Feb 2013 21:24:19 +0000 Subject: [PATCH] Post locks: don't check hidden checkboxes on bulk select/deselect, props dh-shredder, see #23312 git-svn-id: https://develop.svn.wordpress.org/trunk@23485 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/js/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/js/common.js b/wp-admin/js/common.js index 0f6b84d08a..cd9ede70ad 100644 --- a/wp-admin/js/common.js +++ b/wp-admin/js/common.js @@ -307,7 +307,7 @@ $(document).ready( function() { $(this).closest( 'table' ).children( 'tbody' ).filter(':visible') .children().children('.check-column').find(':checkbox') .prop('checked', function() { - if ( $(this).closest('tr').is(':hidden') ) + if ( $(this).is(':hidden') ) return false; if ( toggle ) return $(this).prop( 'checked' );