-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add theme name validation #304
Conversation
I don't think those guidelines from 2013 are valid anymore. It may be easiest to use the same "blockers" as the uploader in the directory? |
I have made a quick search and could not find those blockers. Apart from this https://make.wordpress.org/themes/handbook/review/required/#7-naming-spelling-and-trademarks are there any other guidelines that still apply? @carolinan could you share a link, please? |
Thanks! I removed the old naming restrictions from validation. |
I don't think this should be a hard restriction to create a theme. Given that plugin can be used to create themes without restrictions and not every theme is published to Anyone should still be able to create a theme with any name of their choice and published it to their own platform. |
The main reason is that if the theme on wordpress.org has a higher version number, the site will get notifications that there is an update, but it won't be the same theme. This is very annoying and can be devastating if you don't know about it. |
If we lift the restriction, I think those of us who do submit to .org would like a notice or warning at least. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is working as advertised so I'm giving the ✅
There are a couple ideas I had for improving the UX a bit but these could be done in a follow up if folks agree:
- it could be nice to persist the warning if you navigate away from the input
- supply a link to the documentation / theme name guidelines if a warning is issued
Regarding 1:
Warning is shown | Warning disappears when you navigate away |
---|---|
Thanks for testing! |
What?
Add theme name validation.
The user won't be able to create a theme using a name if it:
Why?
To early warning theme creators about not valid theme names
Screencast
2023-04-05.15-26-02.mp4
Fixes #299