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

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


#43268: Typo in the docs of wp_term_exists()
--------------------------------------+-------------------
 Reporter:  swissspidy                |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  low                       |   Milestone:  5.0
Component:  Taxonomy                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:  docs
--------------------------------------+-------------------

Old description:

> 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.

New description:

 The `@return` part for `wp_term_exists()` 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.

--

Comment (by swissspidy):

 Whoops, sorry folks! Copy paste mistake,

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


More information about the wp-trac mailing list