From e200f660bc73e1e261813c54ea3d69303635fa51 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 26 Nov 2008 22:07:57 +0000 Subject: [PATCH] Don't select hidden chechboxes when using the "select all", fixes #8355 git-svn-id: https://develop.svn.wordpress.org/trunk@9911 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/js/common.js | 2 +- wp-includes/script-loader.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/js/common.js b/wp-admin/js/common.js index 10ed2f2601..6eff51507d 100644 --- a/wp-admin/js/common.js +++ b/wp-admin/js/common.js @@ -203,7 +203,7 @@ jQuery(document).ready( function($) { $( 'thead :checkbox, tfoot :checkbox' ).click( function(e) { var c = $(this).attr('checked'); - $(this).parents( 'form:first' ).find( 'table .check-column :checkbox' ).attr( 'checked', function() { + $(this).parents( 'form:first' ).find( 'table tbody:visible, table thead:visible, table tfoot:visible').find( '.check-column :checkbox' ).attr( 'checked', function() { if ( e.shiftKey ) return $(this).attr( 'checked' ) ? '' : 'checked'; else if (c) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index a1854f65e0..37065c8b84 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -41,7 +41,7 @@ function wp_default_scripts( &$scripts ) { $scripts->base_url = $guessurl; $scripts->default_version = get_bloginfo( 'version' ); - $scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'hoverIntent'), '20081120b' ); + $scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'hoverIntent'), '20081126' ); $scripts->add( 'sack', '/wp-includes/js/tw-sack.js', false, '1.6.1' ); $scripts->add( 'quicktags', '/wp-includes/js/quicktags.js', false, '20081103' );