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

WordPress Trac noreply at wordpress.org
Tue Oct 30 11:15:14 UTC 2018


#38310: Improve "wp_update_term" documentation
-------------------------------------------------+-------------------------
 Reporter:  ruud@…                               |       Owner:  ruudjoyo
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Taxonomy                             |     Version:  4.7
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug needs-patch needs-    |     Focuses:  docs
  unit-tests                                     |
-------------------------------------------------+-------------------------

Comment (by johnnyb):

 Jumping in here because inaccurate docs lost me some time yesterday.

 Can we add a list of what will actually get updated if passed to `$args`?
 For example, the codex says
 (https://codex.wordpress.org/Function_Reference/wp_update_term) that we
 can update the taxonomy that a term is part of by passing
 `$args['taxonomy'] = 'new-taxonomy';`, but this is not the case. An
 explicit list of allowed `$args` would be great for developers.

 I'm off to correct the codex now.

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


More information about the wp-trac mailing list