WP 6.3-RC3: it is not possible to trash patterns with draft status in post editor #53367
Labels
[Feature] Patterns
A collection of blocks that can be synced (previously reusable blocks) or unsynced
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
If you add a new pattern in the post editor you will not get the row action option to trash the pattern.
This seems to be caused by map_meta_cap mapping
delete_post
cap todelete_blocks
.(@line 153 in capabilities.php).It looks this is not a default cap assigned to the administrator role, therefor administrators are not allowed to trash draft patterns. Which of course is a bug. See screenshot.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
So
$cap = 'delete_blocks',
which is not in$capabilities
:Environment info
WP 6.3 RC3
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: