Changeset 43806
- Timestamp:
- 10/23/2018 10:58:35 AM (6 years ago)
- Location:
- branches/5.0/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/post.php
r43805 r43806 230 230 array( 231 231 'labels' => array( 232 'name' => __( 'Blocks' ),232 'name' => __( 'Blocks' ), 233 233 'singular_name' => __( 'Block' ), 234 234 'search_items' => __( 'Search Blocks' ), … … 243 243 'rest_controller_class' => 'WP_REST_Blocks_Controller', 244 244 'capability_type' => 'block', 245 'capabilities' => array(245 'capabilities' => array( 246 246 // You need to be able to edit posts, in order to read blocks in their raw form. 247 247 'read' => 'edit_posts', -
branches/5.0/src/wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php
r43805 r43806 94 94 return new WP_Error( 95 95 'block_cannot_read', 96 __( 'Sorry, you are not allowed to read blocks of this post ' ),96 __( 'Sorry, you are not allowed to read blocks of this post.' ), 97 97 array( 98 98 'status' => rest_authorization_required_code(),
Note: See TracChangeset
for help on using the changeset viewer.