Update documentation on wp_insert_term to state that it will return an error if inserting an existing term.
|Reported by:||lgedeon||Owned by:||SergeyBiryukov|
phpdoc for wp_insert_term() states:
If both the term id and taxonomy exist previously, then an array will be returned that contains the term id and the contents of what is returned.
Should we just adjust the docs to fit the current behavior?
Change History (11)
comment:4 SergeyBiryukov — 6 months ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
comment:6 SergeyBiryukov — 6 months ago
Note: See TracTickets for help on using tickets.