Opened 2 years ago
Last modified 2 years ago
#59478 new enhancement
term_exists() to return false if no terms exist
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Taxonomy | Keywords: | |
| Focuses: | Cc: |
Description (last modified by )
When using the function term_exists() in wp-includes/taxonomy.php, it returns null if no terms exist. This behaviour seems incorrect and is inconsistent with other similar functions in the same file (taxonomy_exists() is one example).
It would make more sense to return false.
Change History (1)
Note: See
TracTickets for help on using
tickets.