[wp-trac] [WordPress Trac] #57619: register_taxonomy doesn't check for reserved terms
WordPress Trac
noreply at wordpress.org
Fri Jul 11 14:10:47 UTC 2025
#57619: register_taxonomy doesn't check for reserved terms
-------------------------+-------------------------------
Reporter: milossh | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses: coding-standards
-------------------------+-------------------------------
Changes (by oglekler):
* keywords: => 2nd-opinion
Comment:
I had a list of 13 taxonomies to register for certain CPT. Of course, I
knew about reserved terms, but It didn't occur to me to check and as the
result I registered "themes" taxonomy. It worked fine, but I got a side
effect that was difficult to discover as editors were using Thumbnail
block to add Thumbnail and no one was complaining that "Set featured
image" button is gone.
I think _doing_it_wrong() will be very useful to notify that word is
reserved and cannot be used as taxonomy.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57619#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list