Opened 18 months ago
Closed 17 months ago
#59041 closed defect (bug) (fixed)
Permit trashing patterns with draft status in post editor
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.3.2 | Priority: | normal |
Severity: | normal | Version: | 6.3 |
Component: | Posts, Post Types | Keywords: | has-patch gutenberg-merge dev-feedback fixed-major |
Focuses: | Cc: |
Description
First reported in https://github.com/WordPress/gutenberg/issues/53367
Since 6.3 it's not possible to trash wp_block
custom post types that have a post_status
of draft.
The wp_block
post type has delete_published_posts
in the capabilities array only.
Step-by-step reproduction instructions:
- Add a pattern in the post editor (wp-admin/edit.php?post_type=wp_block)
- Save it in draft status
- Go back to the list table
- Try to trash the pattern (the row action will not be there)
Attachments (1)
Change History (14)
This ticket was mentioned in PR #4987 on WordPress/wordpress-develop by @ramonopoly.
18 months ago
#1
#4
@
18 months ago
Does 59041.diff do anything different to the already-attached https://github.com/WordPress/wordpress-develop/pull/4987?
#6
@
18 months ago
- Milestone changed from 6.3.1 to 6.3.2
WP 6.3.1 is going to be released in the next few days, so let's move this ticket to 6.3.2 to give it more time to be committed and backported.
#7
@
17 months ago
- Owner set to isabel_brison
- Resolution set to fixed
- Status changed from new to closed
In 56577:
@isabel_brison commented on PR #4987:
17 months ago
#8
Committed in r56577.
#9
@
17 months ago
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening this ticket so it can be backported to 6.3.
Syncing changes from:
Adds delete_posts to the wp_block (patterns) capabilities.
Required to allow users to delete draft posts from wp-admin/edit.php?post_type=wp_block
See Gutenberg issue:
Trac ticket: https://core.trac.wordpress.org/ticket/59041