[wp-trac] [WordPress Trac] #31155: register_taxonomy function does not check reserved taxonomies
WordPress Trac
noreply at wordpress.org
Wed Jan 28 11:26:52 UTC 2015
#31155: register_taxonomy function does not check reserved taxonomies
------------------------------+-----------------------------
Reporter: sebastiaandegeus | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: trunk
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
the function register_taxonomy() in wp-includes/taxonomy.php does not
check for reserved taxonomies. But later on this will cause malfunctions
or unexpected behaviour and bugs.
I wrote a very simple patch that checks if any of the reserved taxonomies
are being registered and if so it notifies the developer by
_doing_it_wrong and WP_Error as a fallback.
Projects and plugins that are using reserved taxonomies in the wild will
not break. But the developers will be notified via the logs or on their
development environments where WP_DEBUG is true.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31155>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list