Make WordPress Core

Changeset 59468


Ignore:
Timestamp:
11/27/2024 09:21:33 PM (less than one hour ago)
Author:
azaozz
Message:

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.

Location:
branches/6.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.7

  • branches/6.7/src/js/_enqueues/admin/post.js

    r59421 r59468  
    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                }
Note: See TracChangeset for help on using the changeset viewer.