diff --git a/wp-includes/post.php b/wp-includes/post.php index 302d2210d5..d040f442e2 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -229,7 +229,7 @@ function create_initial_post_types() { 'wp_block', array( 'labels' => array( - 'name' => __( 'Blocks'), + 'name' => __( 'Blocks' ), 'singular_name' => __( 'Block' ), 'search_items' => __( 'Search Blocks' ), ), @@ -242,7 +242,7 @@ function create_initial_post_types() { 'rest_base' => 'blocks', 'rest_controller_class' => 'WP_REST_Blocks_Controller', 'capability_type' => 'block', - 'capabilities' => array( + 'capabilities' => array( // You need to be able to edit posts, in order to read blocks in their raw form. 'read' => 'edit_posts', // You need to be able to publish posts, in order to create blocks. diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php index a4f17283c5..f0e1e7db47 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php @@ -93,7 +93,7 @@ class WP_REST_Block_Renderer_Controller extends WP_REST_Controller { if ( ! $post || ! current_user_can( 'edit_post', $post->ID ) ) { return new WP_Error( 'block_cannot_read', - __( 'Sorry, you are not allowed to read blocks of this post' ), + __( 'Sorry, you are not allowed to read blocks of this post.' ), array( 'status' => rest_authorization_required_code(), ) diff --git a/wp-includes/version.php b/wp-includes/version.php index 72fce4fbae..65402f53bc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43805'; +$wp_version = '5.0-alpha-43806'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.