[wp-trac] [WordPress Trac] #27489: If non-string passed to taxonomy_exists() php throws warning
WordPress Trac
noreply at wordpress.org
Sat Mar 22 15:45:36 UTC 2014
#27489: If non-string passed to taxonomy_exists() php throws warning
--------------------------+------------------------------
Reporter: jackreichert | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Changes (by SergeyBiryukov):
* version: trunk => 3.0
Comment:
`get_terms()` description says that it only accepts a string or an array
of strings:
[source:tags/3.8.1/src/wp-includes/taxonomy.php#L1252]
This looks similar to #17299, #18927, and #23767. The consensus was that
we shouldn't hide warnings caused by developer errors (unless there's a
strong reason). It would make debugging harder.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27489#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list