diff --git a/wp-admin/js/post.js b/wp-admin/js/post.js index 4f5fefb4e3..7bb4037bfb 100644 --- a/wp-admin/js/post.js +++ b/wp-admin/js/post.js @@ -349,7 +349,7 @@ jQuery(document).ready( function($) { return false; }); - $('#' + taxonomy + 'checklist li.popular-category, #' + taxonomy + 'checklist-pop').on( 'click', 'input[type="checkbox"]', function() { + $('#' + taxonomy + 'checklist, #' + taxonomy + 'checklist-pop').on( 'click', 'input[type="checkbox"]', function() { var t = $(this), c = t.is(':checked'), id = t.val(); if ( id && t.parents('#taxonomy-'+taxonomy).length ) $('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );