Blocks: Fix coding standards introduced in [43804].
Props Presskopp, swissspidy. See #45098 Built from https://develop.svn.wordpress.org/branches/5.0@43806 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b1f64a77d8
commit
4521b34dca
|
@ -229,7 +229,7 @@ function create_initial_post_types() {
|
||||||
'wp_block',
|
'wp_block',
|
||||||
array(
|
array(
|
||||||
'labels' => array(
|
'labels' => array(
|
||||||
'name' => __( 'Blocks'),
|
'name' => __( 'Blocks' ),
|
||||||
'singular_name' => __( 'Block' ),
|
'singular_name' => __( 'Block' ),
|
||||||
'search_items' => __( 'Search Blocks' ),
|
'search_items' => __( 'Search Blocks' ),
|
||||||
),
|
),
|
||||||
|
|
|
@ -93,7 +93,7 @@ class WP_REST_Block_Renderer_Controller extends WP_REST_Controller {
|
||||||
if ( ! $post || ! current_user_can( 'edit_post', $post->ID ) ) {
|
if ( ! $post || ! current_user_can( 'edit_post', $post->ID ) ) {
|
||||||
return new WP_Error(
|
return new WP_Error(
|
||||||
'block_cannot_read',
|
'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(
|
array(
|
||||||
'status' => rest_authorization_required_code(),
|
'status' => rest_authorization_required_code(),
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue