[wp-trac] [WordPress Trac] #36379: Saving post can remove its hierarchical terms if user cannot 'assign_terms'

WordPress Trac noreply at wordpress.org
Wed Mar 30 22:53:33 UTC 2016


#36379: Saving post can remove its hierarchical terms if user cannot 'assign_terms'
-----------------------------------+-----------------------------
 Reporter:  dlh                    |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  Future Release
Component:  Taxonomy               |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  4.6-early needs-patch  |     Focuses:  administration
-----------------------------------+-----------------------------

Comment (by johnbillion):

 I think the solution here is to not output the hidden `post_category[]`
 (or `tax_input[$tax]`) input, which is in place so saving of the terms is
 triggered when no checkboxes are selected.

 Refs (there may be more):

  * https://core.trac.wordpress.org/browser/tags/4.4.2/src/wp-
 admin/includes/class-wp-posts-list-table.php?marks=1387#L1384
  * https://core.trac.wordpress.org/browser/tags/4.4.2/src/wp-
 admin/includes/meta-boxes.php?marks=505#L501

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


More information about the wp-trac mailing list