Opened 3 years ago
Closed 3 years ago
#59041 closed defect (bug) (fixed)
Permit trashing patterns with draft status in post editor
| Reported by: | ramonopoly | Owned by: | isabel_brison |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.3.2 |
| Component: | Posts, Post Types | Version: | 6.3 |
| Severity: | normal | Keywords: | has-patch gutenberg-merge dev-feedback fixed-major |
| Cc: | Focuses: |
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.
3 years ago
#1
#4
@
3 years ago
Does 59041.diff do anything different to the already-attached https://github.com/WordPress/wordpress-develop/pull/4987?
#6
@
3 years ago
- Milestone 6.3.1 → 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.
@isabel_brison commented on PR #4987:
3 years ago
#8
Committed in r56577.
#9
@
3 years ago
- Resolution fixed
- Status closed → reopened
Reopening this ticket so it can be backported to 6.3.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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