[wp-trac] [WordPress Trac] #57586: term_exists() return type not consistent regarding wp_insert_term()
WordPress Trac
noreply at wordpress.org
Mon Jan 30 10:14:03 UTC 2023
#57586: term_exists() return type not consistent regarding wp_insert_term()
-------------------------+-----------------------------
Reporter: hugod | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
`term_exists()` returns an array of strings containing `term_id` and
`term_taxonomy_id`. Although `wp_insert_term()` as well as
`wp_update_term()` return an array of integers.
For consistency, it'd be better to return alway the same type. Also, it'd
be less error prone.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57586>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list