[wp-trac] [WordPress Trac] #11302: Bulk editing posts should pre-fill fields with the same value / allow for removal
WordPress Trac
noreply at wordpress.org
Wed Jan 17 04:16:58 UTC 2024
#11302: Bulk editing posts should pre-fill fields with the same value / allow for
removal
-------------------------------------+-------------------------------------
Reporter: pavelevap | Owner: francina
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.5
Component: Quick/Bulk Edit | Version: 2.9
Severity: normal | Resolution:
Keywords: needs-testing has-patch | Focuses: accessibility,
needs-e2e-tests | javascript, administration
-------------------------------------+-------------------------------------
Comment (by ajmcfadyen):
Here's an updated patch with accessible label text for the indeterminate
checkboxes:
[https://core.trac.wordpress.org/attachment/ticket/11302/11302.3.patch]
{{{
if ( ! $( this ).parent().find(
'input[name="indeterminate_post_category[]"]' ).length ) {
// Set indeterminate states for the backend.
$( this ).attr( 'label', wp.i18n.__( 'Some selected posts have
this category' ) ).after( '<input type="hidden"
name="indeterminate_post_category[]" value="' + $( this ).val() + '">' );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/11302#comment:100>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list