Editor: Fix the JS to select, save, and update categories on the old Edit Post screen.
Props: charleslf, im3dabasia1, desrosj, dhruvang21, Zargarov, sainathpoojary, azaozz Fixes: #62440 Built from https://develop.svn.wordpress.org/trunk@59414 git-svn-id: http://core.svn.wordpress.org/trunk@58800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2c691c2fbd
commit
6813017f32
|
@ -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.8-alpha-59413';
|
||||
$wp_version = '6.8-alpha-59414';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue