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. Built from https://develop.svn.wordpress.org/branches/6.7@59421 git-svn-id: http://core.svn.wordpress.org/branches/6.7@58807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
60f27fbaad
commit
226f7f7964
|
@ -659,8 +659,10 @@ jQuery( function($) {
|
|||
'li.popular-category > label 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 );
|
||||
if ( id && t.parents('#taxonomy-'+taxonomy).length ) {
|
||||
$('input[id^="in-' + taxonomy + '-' + id + '"]').prop('checked', c);
|
||||
$('input#in-popular-' + taxonomy + '-' + id).prop('checked', c);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.7.1-alpha-59420';
|
||||
$wp_version = '6.7.1-alpha-59421';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue