WordPress / WordPress/pattern-directory

Clearly state why the title is invalid

Open Beginner friendly
#743 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.