WordPress / WordPress/pattern-directory
Clearly state why the title is invalid
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 134
- Forks
- 46
- Avg merge
- 9h 4m
- Merged PRs (30d)
- 19
Description
See: https://core.trac.wordpress.org/ticket/65032
The is_title_valid function checks if a title is valid by verifying the presence of specific words. However, users only see Pattern title is invalid. The pattern title should describe the pattern. as an error message, making it unclear what the problem is. I suggest clearly indicating which words are prohibited within the user's input title.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in public_html/wp-content/plugins/pattern-directory/includes/pattern-validation.php, at the is_title_valid function and its current error message. Trace how prohibited words are detected, then make the validation response identify the relevant words; done means an invalid title explains which words caused the failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- content
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 76/100