mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-26 20:10:16 +00:00
9bd6c81d1f10a02e7827a39d9616f76f2aea1d57
edit_posts capability on the wp_block post type.
Meta capability mapping doesn't recurse through multiple meta definitions, which creates a situation where the capabilities test is looking for the non-existent primitive capability `edit_blocks`, which should instead be mapped to `edit_posts`. Defining the `edit_posts` capability when the `wp_block` post type is registered causes this check to change to to the `edit_posts` capability. Props aduth. Fixes #45373. git-svn-id: https://develop.svn.wordpress.org/trunk@44687 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
80.5%
CSS
9.4%
JavaScript
8.5%
SCSS
0.9%
HTML
0.7%