WordPress / WordPress/pattern-directory
Changes to title when pattern is pending, should update slug.
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 134
- Forks
- 46
- Avg merge
- 9h 4m
- Merged PRs (30d)
- 19
Description
Describe the bug
A pattern was submitted, set as Pending, requested to have the Title changed to not reference a Name/Trademark, Title changed, and then published.
The slug of the pattern did not automatically update to the new title name, instead, keeping the old-title as the slug.
Example pattern in question: https://wordpress.org/patterns/wp-admin/post.php?post=32415&action=edit
To Reproduce
Steps to reproduce the behavior:
- Submit Pattern to Pending
- Alter Pattern Name
- Publish
- Observe the previous title used as slug.
Expected behavior
The slug should be regenerated, when a Pending pattern has it's title changed.
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
Reproduce the workflow from the issue: submit a pattern as Pending, change its title, publish it, and compare the resulting slug with the new title. Trace the pattern publishing and slug-generation entry points, then verify that a title change while Pending produces the expected regenerated slug.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend, content
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100