From 9de9019d4111c50b0368db1bdc7c39a1db10c7a6 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 4 Jan 2013 20:54:11 +0000 Subject: [PATCH] Taxonomy postbox: fix toggling with "Choose from the most used tags" when several postboxes are shown, props SergeyBiryukov, fixes #23112 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@23278 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/js/post.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-admin/js/post.js b/wp-admin/js/post.js index d08dc4ab0e..32bb365ea1 100644 --- a/wp-admin/js/post.js +++ b/wp-admin/js/post.js @@ -165,9 +165,11 @@ tagBox = { // tag cloud $('a.tagcloud-link').click(function(){ - if ( ! $('.the-tagcloud').length ) - tagBox.get( $(this).attr('id') ); - $(this).siblings('.the-tagcloud').toggle(); + tagBox.get( $(this).attr('id') ); + $(this).unbind().click(function(){ + $(this).siblings('.the-tagcloud').toggle(); + return false; + }); return false; }); }