Skip to content

Conversation

@ellatrix
Copy link
Member

@ellatrix ellatrix commented Oct 22, 2025

The logic introduced for the unique slug filter in #8063 is incorrect. We should return the desired slug for the wp_template post type.

Testing instructions:

Create two templates of the same type (e.g. home). Activating the second one won't take any effect on the front-end, and the template will be marked as "Custom" (instead of "Home").

Trac ticket: https://core.trac.wordpress.org/ticket/64141


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.

@ellatrix ellatrix added the bug label Oct 22, 2025
Copy link

@ntsekouras ntsekouras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@github-actions
Copy link

Test using WordPress Playground

The 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

  • The Plugin and Theme Directories cannot be accessed within Playground.
  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

pento pushed a commit that referenced this pull request Oct 23, 2025
The logic introduced for the unique slug filter in [61033] is incorrect. We should return the desired slug for the `wp_template` post type. This causes any second created template targeting a certain slug to not work correctly.

Developed in #10397.

See #62755.
Fixes #64141.
Props ntsekouras, priethor.

git-svn-id: https://develop.svn.wordpress.org/trunk@61054 602fd350-edb4-49c9-b593-d223f7449a82
@github-actions
Copy link

A commit was made that fixes the Trac ticket referenced in the description of this pull request.

SVN changeset: 61054
GitHub commit: 7a840d3

This PR will be closed, but please confirm the accuracy of this and reopen if there is more work to be done.

@github-actions github-actions bot closed this Oct 23, 2025
github-actions bot pushed a commit to platformsh/wordpress-performance that referenced this pull request Oct 23, 2025
The logic introduced for the unique slug filter in [61033] is incorrect. We should return the desired slug for the `wp_template` post type. This causes any second created template targeting a certain slug to not work correctly.

Developed in WordPress/wordpress-develop#10397.

See #62755.
Fixes #64141.
Props ntsekouras, priethor.
Built from https://develop.svn.wordpress.org/trunk@61054


git-svn-id: https://core.svn.wordpress.org/trunk@60390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
markjaquith pushed a commit to markjaquith/WordPress that referenced this pull request Oct 23, 2025
The logic introduced for the unique slug filter in [61033] is incorrect. We should return the desired slug for the `wp_template` post type. This causes any second created template targeting a certain slug to not work correctly.

Developed in WordPress/wordpress-develop#10397.

See #62755.
Fixes #64141.
Props ntsekouras, priethor.
Built from https://develop.svn.wordpress.org/trunk@61054


git-svn-id: http://core.svn.wordpress.org/trunk@60390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants