Closed gigitux closed 2 days ago
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot
label.
If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
Co-authored-by: gigitux <gigitux@git.wordpress.org>
Co-authored-by: oandregal <oandregal@git.wordpress.org>
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.
How do I trigger the situation this PR fixes? I tried the steps in the description but couldn't. Tried with draft pages (even a new one I just created) but cannot run into the issue. I see the slug everywhere:
https://github.com/user-attachments/assets/407b7592-db80-4c63-b735-c4f90b96b9f4
How do I trigger the situation this PR fixes? I tried the steps in the description but couldn't. Tried with draft pages (even a new one I just created) but cannot run into the issue. I see the slug everywhere:
Screen.Recording.2024-10-29.at.17.54.57.mov
Sorry for the oversight in the testing instructions. They are now updated. The issue occurs when you have a draft page without a title.
I was able to reproduce this by adding a new Page from the wp-admin flow. If I create one from the site editor, it appears to be created with "no title" as title.
Flaky tests detected in 51e08fe4754432017a7dd25c6c9d7f0031d67ac8. Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.
🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11594107744 📝 Reported issues:
/test/e2e/specs/editor/various/taxonomies.spec.js
What?
I noticed that the fallback logic for undefined slugs was missing, for instance draft pages. This PR implements a mechanism to provide a fallback slug when the slug is not defined.
Why?
How?
Testing Instructions
Ensure that
Quick Edit in DataViews
andQuick Edit in DataViews
are enabled. Ensure that you have a draft page without any title set.Testing Instructions for Keyboard
Screenshots or screencast