WordPress / WordPress/pattern-directory

Changes to title when pattern is pending, should update slug.

Open
#481 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Component] Pattern Creator
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:

  1. Submit Pattern to Pending
  2. Alter Pattern Name
  3. Publish
  4. 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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.