diff --git a/src/js/_enqueues/admin/inline-edit-post.js b/src/js/_enqueues/admin/inline-edit-post.js index 46fba439fb..640d747b41 100644 --- a/src/js/_enqueues/admin/inline-edit-post.js +++ b/src/js/_enqueues/admin/inline-edit-post.js @@ -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(''); // Populate fields in the quick edit window. diff --git a/src/wp-admin/includes/class-wp-posts-list-table.php b/src/wp-admin/includes/class-wp-posts-list-table.php index 0e87b72abf..818abf48f6 100644 --- a/src/wp-admin/includes/class-wp-posts-list-table.php +++ b/src/wp-admin/includes/class-wp-posts-list-table.php @@ -1611,9 +1611,9 @@ class WP_Posts_List_Table extends WP_List_Table { ?> -
+
- +
post_type, 'title' ) ) : ?>