WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 4 months ago

#11302 new enhancement

Bulk editing posts should pre-fill fields with the same value / allow for removal

Reported by: pavelevap Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 2.9
Component: Quick/Bulk Edit Keywords: needs-patch
Focuses: Cc:

Description

All I need is quickly move some posts from one category to another.

How to simulate this problem:

Create 2 posts in Uncategorized category.
Check both of them - Bulk actions - Edit.
There is no category selected even if both posts are in Uncategorized. When I check Category1 and click Update, both posts are now in Uncategorized and also in Category1. But no chance remove them from Uncategorized with Bulk actions.

Change History (14)

comment:1 pavelevap4 years ago

  • Cc pavelevap@… added

comment:2 scribu4 years ago

  • Component changed from UI to Administration
  • Keywords needs-patch added

Confirmed behaviour with 2.9-beta2.

comment:3 scribu4 years ago

  • Component changed from Administration to Quick Edit

Actually, no categories are checked!

comment:4 scribu4 years ago

  • Milestone changed from 2.9 to 3.0
  • Summary changed from Bulk actions for category change does not work to Can't removeCategories not checked in Quick edit
  • Type changed from defect (bug) to enhancement

The same goes for tags: the tag box will always be empty, even if both posts have one or more tags in common.

I think Quick Edit simply doesn't check similarities between posts at all, although it would be nice.

To get this working right will take some serious patching and a lot of testing. Punting to the next major release.

comment:5 scribu4 years ago

  • Summary changed from Can't removeCategories not checked in Quick edit to Bulk editing posts should pre-fill fields with the same value

comment:6 nacin4 years ago

  • Milestone changed from 3.0 to Future Release

No patch, punting.

comment:7 scribu4 years ago

Related: #12837

comment:8 chased@…3 years ago

I'd like to add that this seems to also appear when attempting to change Author with Bulk Edit. When doing so, changes are not saved.

comment:9 helenyhou21 months ago

Closed #21252 as a duplicate

comment:10 SergeyBiryukov10 months ago

Related: #19859, #24608

Last edited 10 months ago by SergeyBiryukov (previous) (diff)

comment:11 helen7 months ago

#24608 was marked as a duplicate.

comment:12 helen7 months ago

  • Summary changed from Bulk editing posts should pre-fill fields with the same value to Bulk editing posts should pre-fill fields with the same value / allow for removal

I could have sworn there was a comment to this effect somewhere already, but repeating it probably won't hurt.

There are two paths to allowing for removal of terms when it comes to UI + flow - that it can only be done when that term is already set for all posts in the selection (pre-filling with a check), or that we implement the indeterminate state (usually indicated by a checkbox with a dash through it) that allows the category to be removed from any posts that have that term set.

Implementation-wise, given that checkboxes don't send in the $_POST array when they aren't checked, a patch probably requires a good deal of thought. As noted in #8690, this is currently an add functionality, not replace. Indeterminate checkboxes are also not standardized in browsers or available in HTML.

Note that this only applies to hierarchical taxonomies. #19859 for non-hierarchical.

comment:13 ubernaut7 months ago

  • Cc ubernaut@… added

comment:14 grahamarmfield4 months ago

  • Cc graham.armfield@… added
Note: See TracTickets for help on using tickets.