Automattic / Automattic/babble

Sometimes slugs get stuck on child posts

Open
#47 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
250
Forks
44
PR merge metrics
No merged PRs in 30d

Description

When editing German language content in the FSD site I came across this situation:

A parent and child post of `post_type` `principle_de_de` which have the same `post_name` and which wouldn't allow the `post_name` to be edited by changing the slug below the title in the admin edit UI. I changed the `post_name` in the DB, flushed the object cache, and it now seems fine.

One to keep an eye on.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the German-language FSD case with parent and child posts of post_type principle_de_de sharing a post_name. Inspect the admin slug field behavior and the object-cache state before and after editing; done means identifying why the slug becomes uneditable and confirming a reliable fix that prevents the duplicate-slug condition.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend, content
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.