mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
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"]',
|
'li.popular-category > label input[type="checkbox"]',
|
||||||
function() {
|
function() {
|
||||||
var t = $(this), c = t.is(':checked'), id = t.val();
|
var t = $(this), c = t.is(':checked'), id = t.val();
|
||||||
if ( id && t.parents('#taxonomy-'+taxonomy).length )
|
if ( id && t.parents('#taxonomy-'+taxonomy).length ) {
|
||||||
$('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );
|
$('input[id^="in-' + taxonomy + '-' + id + '"]').prop('checked', c);
|
||||||
|
$('input#in-popular-' + taxonomy + '-' + id).prop('checked', c);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
2
wp-admin/js/post.min.js
vendored
2
wp-admin/js/post.min.js
vendored
File diff suppressed because one or more lines are too long
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user