Skip to content

Commit

Permalink
Editor: Fix selecting/deselecting multiple unwanted categories when c…
Browse files Browse the repository at this point in the history
…licking 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
  • Loading branch information
azaozz committed Nov 27, 2024
1 parent a4759dc commit ab7a749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/_enqueues/admin/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ jQuery( function($) {
function() {
var t = $(this), c = t.is(':checked'), id = t.val();
if ( id && t.parents('#taxonomy-'+taxonomy).length ) {
$('input[id^="in-' + taxonomy + '-' + id + '"]').prop('checked', c);
$('input#in-' + taxonomy + '-' + id + ', input[id^="in-' + taxonomy + '-' + id + '-"]').prop('checked', c);
$('input#in-popular-' + taxonomy + '-' + id).prop('checked', c);
}
}
Expand Down

0 comments on commit ab7a749

Please sign in to comment.