Slugs: numeric URLs are not allowed #28662
Labels
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Type] Bug
An existing feature does not function as intended
Description
While trying to create a 404 template in an FSE theme from the dashboard I came across an interesting issue:
If I use
404
as the title, the slug becamecustom_slug_60194c2e24403
.When trying to change the slug to any numeric value I get an error:
Updating failed. Invalid parameter(s): slug
Apparently numeric values are not allowed for slugs. Changing it to
404a
works, any random number doesn't.Step-by-step reproduction instructions
If I try this on a post (using postname as permalink structure) and use
8888888888
as slug, it changes to8888888888-2
which is acceptable since it adds the dash.WordPress information
Device information
The text was updated successfully, but these errors were encountered: