Skip to content

Commit ab7a749

Browse files
committed
Editor: Fix selecting/deselecting multiple unwanted categories when clicking on a Category checkbox on the old Edit Post screen.
Rewieved by joemcgill. Merges [59454] to the 6.7 branch. Props ffffelix, desrosj, ironprogrammer, neotrope, narenin, zaoyao, im3dabasia1, cbravobernal, azaozz. Fixes #62504. git-svn-id: https://develop.svn.wordpress.org/branches/6.7@59468 602fd350-edb4-49c9-b593-d223f7449a82
1 parent a4759dc commit ab7a749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/_enqueues/admin/post.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ jQuery( function($) {
660660
function() {
661661
var t = $(this), c = t.is(':checked'), id = t.val();
662662
if ( id && t.parents('#taxonomy-'+taxonomy).length ) {
663-
$('input[id^="in-' + taxonomy + '-' + id + '"]').prop('checked', c);
663+
$('input#in-' + taxonomy + '-' + id + ', input[id^="in-' + taxonomy + '-' + id + '-"]').prop('checked', c);
664664
$('input#in-popular-' + taxonomy + '-' + id).prop('checked', c);
665665
}
666666
}

0 commit comments

Comments
 (0)