From 4dd2707c606d02de201795d0e207b7beb2f70daa Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Fri, 29 Mar 2013 09:30:48 +0000 Subject: [PATCH] Simplify the accordion sibling-section-closing JS. see #23890 git-svn-id: http://core.svn.wordpress.org/trunk@23858 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/js/accordion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/js/accordion.js b/wp-admin/js/accordion.js index 20277162c6..ac9af672db 100644 --- a/wp-admin/js/accordion.js +++ b/wp-admin/js/accordion.js @@ -10,7 +10,7 @@ jQuery(document).ready( function($) { if ( section.hasClass('cannot-expand') ) return; - section.closest( '.accordion-container' ).find( '.accordion-section' ).not( section ).removeClass( 'open' ); + section.siblings( '.open' ).removeClass( 'open' ); section.toggleClass( 'open' ); }); });