[wp-trac] [WordPress Trac] #43268: Typo in the docs of term_exists() (was: Typo in the docs of wp_term_exists())
WordPress Trac
noreply at wordpress.org
Sun Feb 11 17:39:13 UTC 2018
#43268: Typo in the docs of term_exists()
--------------------------------------+-----------------------
Reporter: swissspidy | Owner: danieltj
Type: defect (bug) | Status: closed
Priority: low | Milestone: 5.0
Component: Taxonomy | Version:
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch | Focuses: docs
--------------------------------------+-----------------------
Description changed by swissspidy:
Old 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.
New description:
The `@return` part for `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.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43268#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list