Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#40801 closed defect (bug) (duplicate)

Category not updating on bulk edit post

Reported by: jagatkri's profile jagatkri Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Quick/Bulk Edit Keywords: has-patch dev-feedback
Focuses: Cc:

Description

when we do bulk edit post and checked multiple categories. It will updated categories in bulk edited post. but when we unchecked some category then will not remove that unchecked category from post.

Attachments (1)

40801.diff (1.3 KB) - added by vijustin 8 years ago.

Download all attachments as: .zip

Change History (5)

@vijustin
8 years ago

#1 @vijustin
8 years ago

The issue seems to stem from the code base running an array_merge for every post being updated that combines it's pre-update categories with any new categories selected in the bulk edit panel. This creates a situation in which the bulk edit can only ever add categories to posts and will never remove a category.

By preventing this array_merge the bulk edit panel treats every post as a blank canvas and adds only the categories selected during the edit process.

Visually this falls in line with user expectations as all the categories are unchecked by default when a user goes to bulk edit posts.

#2 @vijustin
8 years ago

  • Keywords has-patch dev-feedback added
  • Resolution set to invalid
  • Status changed from new to closed

#3 @vijustin
8 years ago

  • Component changed from General to Quick/Bulk Edit
  • Resolution invalid deleted
  • Status changed from closed to reopened

#4 @dd32
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from reopened to closed

Hi there @jagatkri and welcome to Trac.

Thanks for taking the time to report this, however, we're already tracking this feature request in #11302

Note: See TracTickets for help on using tickets.