[wp-trac] [WordPress Trac] #31135: register_taxonomy() should call a _doing_it_wrong() when called with an empty taxonomy name
WordPress Trac
noreply at wordpress.org
Sun Jan 25 22:36:52 UTC 2015
#31135: register_taxonomy() should call a _doing_it_wrong() when called with an
empty taxonomy name
-------------------------+-----------------------------
Reporter: tyxla | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.0
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
If you misuse `register_taxonomy()` with an empty string as a first
parameter, this will currently not throw any notice.
Anyway, it is definitely wrong and can lead to some very weird results
both in the administration and in the frontend.
I suggest that a `_doing_it_wrong()` should be called to cover this case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31135>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list