[wp-trac] [WordPress Trac] #40801: Category not updating on bulk edit post

WordPress Trac noreply at wordpress.org
Thu May 18 21:27:30 UTC 2017


#40801: Category not updating on bulk edit post
--------------------------+------------------------------
 Reporter:  jagatkri      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by vijustin):

 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40801#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list