Make WordPress Core

Opened 11 months ago

Closed 11 months ago

Last modified 11 months ago

#59837 closed defect (bug) (fixed)

Categories are removed when bulk editing posts

Reported by: ricjcs's profile ricjcs Owned by: peterwilsoncc's profile peterwilsoncc
Milestone: 6.4.1 Priority: normal
Severity: major Version: 6.4
Component: Quick/Bulk Edit Keywords: has-patch dev-reviewed
Focuses: Cc:

Description

When bulk editing posts, categories in posts are automatically removed and the category is set to "Uncategorized".

How to reproduce?

  • Select some posts that have some categories defined
  • Update posts in bulk edit mode, you don't need to make any changes, just update

What did I expect?
I expected the categories to remain in the posts as no changes were defined.

For an example, see the screenshots.

This behavior appeared in version 6.4

Attachments (3)

1 - posts.jpg (35.0 KB) - added by ricjcs 11 months ago.
2 - bulk edit.jpg (63.1 KB) - added by ricjcs 11 months ago.
3 - posts.jpg (19.2 KB) - added by ricjcs 11 months ago.

Download all attachments as: .zip

Change History (19)

@ricjcs
11 months ago

@ricjcs
11 months ago

#1 @ricjcs
11 months ago

Bulk editing is presenting several problems. If I define a new category for posts that are in different categories, all categories are removed except the new one.

These situations must be related to ticket #11302, which is something I was hoping would be implemented, but it will be showing unexpected behavior.

This ticket was mentioned in Slack in #core by jorbin. View the logs.


11 months ago

#3 @webcommsat
11 months ago

During the scrub, I have had the same issue when I reproduce the above. Will upload screenshots later.

#4 @SergeyBiryukov
11 months ago

  • Milestone changed from Awaiting Review to 6.4.1

This ticket was mentioned in Slack in #core by peterwilsoncc. View the logs.


11 months ago

#6 @peterwilsoncc
11 months ago

A git bisect indicates this was introduced in [56712].

#9 @hellofromTonya
11 months ago

After discussion in Make/Core slack, there's consensus to revert [56712]. Testing confirmed reverting resolves the issue. And a revert cleanly restores this area of the functionality back to its original form before 6.4.0.

#10 @peterwilsoncc
11 months ago

  • Owner set to peterwilsoncc
  • Resolution set to fixed
  • Status changed from new to closed

In 57093:

Quick/Bulk Edit: Prevent assigning posts to default categories during bulk edit.

During a bulk edit of posts with different categories, the categories for the edited posts would be reset to the default category: uncategorized by default.

This reverts [56712] to resolve the issue.

Props peterwilsoncc, hellofromtonya, jorbin.
Fixes #59837.
See #11302.

#11 @hellofromTonya
11 months ago

  • Keywords dev-reviewed added

[57093] LGTM for backporting to 6.4 branch.

#12 @peterwilsoncc
11 months ago

In 57094:

Quick/Bulk Edit: Prevent assigning posts to default categories during bulk edit.

During a bulk edit of posts with different categories, the categories for the edited posts would be reset to the default category: uncategorized by default.

This reverts [56712] to resolve the issue.

Merges [57093] to the 6.4 branch.

Props peterwilsoncc, hellofromtonya, jorbin.
Fixes #59837.
See #11302.

#15 @ricjcs
11 months ago

Thank you very much for the quick fix.

This ticket was mentioned in Slack in #core by hellofromtonya. View the logs.


11 months ago

Note: See TracTickets for help on using tickets.