[wp-trac] [WordPress Trac] #38310: Improve "wp_update_term" documentation

WordPress Trac noreply at wordpress.org
Mon Oct 31 15:42:26 UTC 2016

#38310: Improve "wp_update_term" documentation
 Reporter:  ruud@…                               |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Taxonomy                             |  Release
 Severity:  normal                               |     Version:  trunk
 Keywords:  good-first-bug has-patch dev-        |  Resolution:
  feedback needs-testing                         |     Focuses:  docs

Comment (by boonebgorges):

 Hi @ruud at joyo - From what I can see, passing `term_id` as part of the
 `$args` array will *already* be ignored. The only `$args` values that do
 anything are: 'name', 'description', 'parent', 'term_group'.

 The "Care must be taken..." line is another one that doesn't make much
 sense for modern WordPress. We use `$args` from a whitelist. It's not
 possible to modify existing terms in way other than these whitelisted
 arguments. Maybe what's meant is: if you don't want to change the
 'description' field, don't pass a 'description' key, etc. If so, this
 could use some rewording. Originally added in [8164].

Ticket URL: <https://core.trac.wordpress.org/ticket/38310#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list