Repository navigation
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
Prevents new numeric post slugs from being used when the permalink structure places
%postname%directly after%category%, since the resulting URL 404s for posts in nested categories.Problem
/%category%/%postname%/, a post12345in a child category has the URL/parent/child/12345/.(.+?)/([^/]+)(?:/([0-9]+))?/?$reads12345as the page number ofparent/child, so the post is unreachable.Change
wp_unique_post_slug()now suffixes new or changed numeric slugs for thepostpost type when%postname%directly follows%category%, the same approach Remove deprecated 'print_emoji_styles' when generating the block editor's iframe assets #5305 took for date archive clashes.12345becomes12345-2.wp_unique_post_slugfilter.Not covered
wp_resolve_numeric_slug_conflicts()) could be a follow-up.Tests
12345in a child category resolves to a single post.Trac ticket: https://core.trac.wordpress.org/ticket/37812
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Sonnet 5.5
Used for: Implementation, tests, and PR description.
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.
🤖 Generated with Claude Code