[wp-trac] [WordPress Trac] #57438: Slug is not generated when saving posts as draft
WordPress Trac
noreply at wordpress.org
Tue Jan 10 18:04:47 UTC 2023
#57438: Slug is not generated when saving posts as draft
------------------------------------------+------------------------------
Reporter: rilwis | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution:
Keywords: has-testing-info 2nd-opinion | Focuses: administration
------------------------------------------+------------------------------
Changes (by ironprogrammer):
* keywords: => has-testing-info 2nd-opinion
Comment:
== Reproduction Report
The slug isn't usually saved until a user has intentionally tried to
set/modify it, or the post published, as noted. Flagging for core
committer input with `2nd-opinion`.
=== Environment
- Hardware: MacBook Pro Apple M1 Pro
- OS: macOS 12.6.2
- Browser: Safari 16.2
- Server: nginx/1.23.3
- PHP: 7.4.33
- WordPress: 6.2-alpha-54642-src (`trunk`)
=== Actual Results
- ✅ In Quick Edit, the slug value is empty.
- ✅ In the block editor's ''Post > URL'', the permalink displays a
placeholder slug, but it is not saved to the post.
- ✅ In the Classic Editor, the permalink displays a placeholder slug, but
it is not saved to the post.
- ✅ Created via WP-CLI, the slug value is empty.
=== Workaround
- Set the slug through Quick Edit, by interacting with the Permalink value
in the block editor (such as clicking inside the text field), or by
modifying the default slug in the Classic Editor. See Additional Notes for
details.
=== Additional Notes
- Via Quick Edit, entering a slug value "reserves" that slug if not
already in use. If the slug is in use, a numeric value is appended to the
slug (e.g. `slug-already-used` -> `slug-already-used-1`). This is visible
after expanding Quick Edit again.
- Via the block editor's Settings > Post > URL, interacting with the
Permalink field attempts to "reserve" the slug. Upon save, if the slug is
in use, a numeric value is appended to the slug. The final slug is
displayed in the URL field.
- Via the Classic Editor, modifying the permalink and saving the draft
attempts to "reserve" the slug. If the slug is in use, a numeric value is
appended to the slug. The final slug is displayed in the permalink.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57438#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list