From 580b083e473839cde78cd418b12e9017c98e7fa9 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: http://core.svn.wordpress.org/trunk@23485 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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' );