From fec30ab9acb0ff70fa7d646b24bd4d622a8cc9ba Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 29 Jul 2008 22:16:39 +0000 Subject: [PATCH] Don't apply checkboxes to invisible comments.Props mdawaffe. fixes #7433 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@8492 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/js/forms.js | 2 +- wp-includes/script-loader.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/js/forms.js b/wp-admin/js/forms.js index 5d6c35dddb..9e493e5e72 100644 --- a/wp-admin/js/forms.js +++ b/wp-admin/js/forms.js @@ -1,5 +1,5 @@ function checkAll(jQ) { // use attr( checked, fn ) - jQuery(jQ).find( 'tbody :checkbox' ).attr( 'checked', function() { + jQuery(jQ).find( 'tbody:visible :checkbox' ).attr( 'checked', function() { return jQuery(this).attr( 'checked' ) ? '' : 'checked'; } ); } diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 98f19e4a1c..073428bfce 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -125,7 +125,7 @@ function wp_default_scripts( &$scripts ) { 'pending' => __('%i% pending') // must look like: "# blah blah" ) ); $scripts->add( 'admin-users', '/wp-admin/js/users.js', array('wp-lists'), '20070823' ); - $scripts->add( 'admin-forms', '/wp-admin/js/forms.js', array('jquery'), '20080401'); + $scripts->add( 'admin-forms', '/wp-admin/js/forms.js', array('jquery'), '20080729'); $scripts->add( 'xfn', '/wp-admin/js/xfn.js', false, '3517' ); $scripts->add( 'upload', '/wp-admin/js/upload.js', array('jquery'), '20070518' ); $scripts->add( 'postbox', '/wp-admin/js/postbox.js', array('jquery'), '20080128' );