#43268 closed defect (bug) (fixed)
Typo in the docs of term_exists()
Reported by: | swissspidy | Owned by: | danieltj |
---|---|---|---|
Milestone: | 5.1 | Priority: | low |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | good-first-bug has-patch |
Focuses: | docs | Cc: |
Description (last modified by )
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.
Attachments (2)
Change History (10)
#2
@
7 years ago
Hah, yep it was for another function instead, took me a while to find it too. Never mind.
#4
@
7 years ago
- Description modified (diff)
- Summary changed from Typo in the docs of wp_insert_term() to Typo in the docs of wp_term_exists()
Whoops, sorry folks! Copy paste mistake,
#5
@
7 years ago
- Owner set to danieltj
- Status changed from new to assigned
Assigning to mark the good-first-bug
as "claimed."
Note: See
TracTickets for help on using
tickets.
Actually, it was in docs for
term_exists()
.