[wp-trac] [WordPress Trac] #35495: Allow `get_terms()` to return all terms, make `$taxonomy` parameter optional
WordPress Trac
noreply at wordpress.org
Sat Feb 20 10:47:04 UTC 2016
#35495: Allow `get_terms()` to return all terms, make `$taxonomy` parameter
optional
--------------------------------------+-----------------------------
Reporter: flixos90 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------------
Comment (by flixos90):
@boonebgorges:
The patch looks good to me as well, [attachment:35495.3.diff] fixes two
issues I found when querying terms without specifying any taxonomy (a PHP
notice thrown and an invalid SQL query).
@swissspidy:
Sounds like a good idea to me, this will provide more clarity, especially
passing which taxonomy is invalid. Should I write another patch with your
proposal included? I'm on it right now anyway :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35495#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list