[wp-trac] [WordPress Trac] #43268: Typo in the docs of wp_insert_term()

WordPress Trac noreply at wordpress.org
Fri Feb 9 09:20:11 UTC 2018


#43268: Typo in the docs of wp_insert_term()
--------------------------+----------------------------------------
 Reporter:  swissspidy    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  low           |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:
 Severity:  normal        |   Keywords:  needs-patch good-first-bug
  Focuses:  docs          |
--------------------------+----------------------------------------
 The `@return` part for `wp_insert_term()` currently reads:

 > Returns null if the term does not exist. Returns the term ID if no
 taxonomy is specified and the term ID exists. Returns an array of the term
 ID and the term taxonomy ID the taxonomy is specified and the pairing
 exists.

 I think in the last sentence an "if" is missing:

 > […] and the term taxonomy ID **if** the taxonomy is specified and the
 pairing exists.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43268>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list