Skip to content

Administration: Keep the row checkbox checked after Quick Edit saves. - #16518

Draft
ankit-addweb wants to merge 1 commit into
WordPress:trunkfrom
ankit-addweb:fix/quick-edit-keeps-row-checkbox
Draft

ankit-addweb wants to merge 1 commit into
WordPress:trunkfrom
ankit-addweb:fix/quick-edit-keeps-row-checkbox

Conversation

@ankit-addweb

@ankit-addweb ankit-addweb commented Dec 4, 2026 •

Copy link
Copy Markdown

Trac ticket: https://core.trac.wordpress.org/ticket/66945

Problem

In list tables (Posts, Pages, Tags, Categories), when a row is selected (including via the header "Select All" checkbox) and then saved with Quick Edit, the row checkbox becomes unchecked while the header and footer "Select All" checkboxes stay checked. A later bulk action then skips the quick-edited item.

Cause

Quick Edit saves over AJAX and replaces the table row with the server response. The new row's checkbox is unchecked by default, so the previous selected state is lost.

Fix

save() in inline-edit-post.js and inline-edit-tax.js now records whether the row checkbox was checked before the request and restores that state on the replacement row. This also covers a taxonomy term whose row ID changes when its slug is edited.

Testing

  1. Go to Posts > Tags (edit-tags.php?taxonomy=post_tag) or Posts > All Posts.
  2. Check the header "Select All" checkbox.
  3. Quick Edit a row and click Update.
  4. The edited row's checkbox stays checked, and a bulk action includes it. Before: it was unchecked.

Quick Edit replaces the table row with the server response, which reset the row checkbox while the "Select All" checkboxes stayed checked. Remember the checked state before saving and restore it on the new row in the posts and taxonomy list tables.
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant