Make WordPress Core

Changeset 59421


Ignore:
Timestamp:
11/19/2024 01:47:33 PM (8 weeks ago)
Author:
desrosj
Message:

Editor: Fix the JS to select, save, and update categories on the old Edit Post screen.

Reviewed by desrosj, azaozz.
Merges [59414] to the 6.7 branch.

Props: charleslf, im3dabasia1, desrosj, dhruvang21, Zargarov, sainathpoojary, azaozz.
Fixes: #62440.

Location:
branches/6.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.7

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

    r59188 r59421  
    660660            function() {
    661661                var t = $(this), c = t.is(':checked'), id = t.val();
    662                 if ( id && t.parents('#taxonomy-'+taxonomy).length )
    663                     $('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );
     662                if ( id && t.parents('#taxonomy-'+taxonomy).length ) {
     663                    $('input[id^="in-' + taxonomy + '-' + id + '"]').prop('checked', c);
     664                    $('input#in-popular-' + taxonomy + '-' + id).prop('checked', c);
     665                }
    664666            }
    665667        );
Note: See TracChangeset for help on using the changeset viewer.