mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Quick/Bulk Edit: Remove duplicate HTML IDs.
Rename `#inline-edit-legend` to avoid duplicate HTML IDs. These have been renamed `#quick-edit-legend` and `#bulk-edit-legend` for the quick and bulk editors respectively. This HTML ID is not required by the quick editor duplicated via JavaScript so is removed as part of the duplication process. Follow up to [53096]. Props azaozz, costdev, greglone, hellofromtonya, ironprogrammer, joedolson, sabernhardt. Fixes #55575. See #35483. git-svn-id: https://develop.svn.wordpress.org/trunk@53352 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -294,6 +294,10 @@ window.wp = window.wp || {};
|
||||
editRow = $('#inline-edit').clone(true);
|
||||
$( 'td', editRow ).attr( 'colspan', $( 'th:visible, td:visible', '.widefat:first thead' ).length );
|
||||
|
||||
// Remove the ID from the copied row and let the `for` attribute reference the hidden ID.
|
||||
$( 'td', editRow ).find('#quick-edit-legend').removeAttr('id');
|
||||
$( 'td', editRow ).find('p[id^="quick-edit-"]').removeAttr('id');
|
||||
|
||||
$(t.what+id).removeClass('is-expanded').hide().after(editRow).after('<tr class="hidden"></tr>');
|
||||
|
||||
// Populate fields in the quick edit window.
|
||||
|
||||
@@ -1611,9 +1611,9 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
?>
|
||||
<tr id="<?php echo $bulk ? 'bulk-edit' : 'inline-edit'; ?>" class="<?php echo $classes; ?>" style="display: none">
|
||||
<td colspan="<?php echo $this->get_column_count(); ?>" class="colspanchange">
|
||||
<div class="inline-edit-wrapper" role="region" aria-labelledby="inline-edit-legend">
|
||||
<div class="inline-edit-wrapper" role="region" aria-labelledby="<?php echo $bulk ? 'bulk' : 'quick'; ?>-edit-legend">
|
||||
<fieldset class="inline-edit-col-left">
|
||||
<legend class="inline-edit-legend" id="inline-edit-legend"><?php echo $bulk ? __( 'Bulk Edit' ) : __( 'Quick Edit' ); ?></legend>
|
||||
<legend class="inline-edit-legend" id="<?php echo $bulk ? 'bulk' : 'quick'; ?>-edit-legend"><?php echo $bulk ? __( 'Bulk Edit' ) : __( 'Quick Edit' ); ?></legend>
|
||||
<div class="inline-edit-col">
|
||||
|
||||
<?php if ( post_type_supports( $screen->post_type, 'title' ) ) : ?>
|
||||
|
||||
Reference in New Issue
Block a user