[wp-trac] [WordPress Trac] #55216: CPT slug value conflicts with wp-admin
WordPress Trac
noreply at wordpress.org
Mon Feb 21 15:39:56 UTC 2022
#55216: CPT slug value conflicts with wp-admin
--------------------------+-----------------------------
Reporter: drzraf | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Query | Version: 5.9
Severity: normal | Resolution: duplicate
Keywords: | Focuses: administration
--------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: new => closed
* resolution: => duplicate
* milestone: Awaiting Review =>
Comment:
Hi there, thanks for the ticket!
> There is no such thing as a custom-post-type slug blacklist
There is an official list of keywords that should not be used as post type
or taxonomy slugs: [https://codex.wordpress.org/Reserved_Terms Reserved
Terms].
That said, `register_post_type()` indeed does not trigger a warning if any
of the reserved terms is used as a slug. This was previously suggested in
#31154, let's continue the discussion there.
Also related/duplicate: #33125.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55216#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list