WordPress.org

Make WordPress Core

Changeset 43806


Ignore:
Timestamp:
10/23/2018 10:58:35 AM (13 months ago)
Author:
danielbachhuber
Message:

Blocks: Fix coding standards introduced in [43804].

Props Presskopp, swissspidy.
See #45098

Location:
branches/5.0/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-includes/post.php

    r43805 r43806  
    230230        array(
    231231            'labels'                => array(
    232                 'name'          => __( 'Blocks'),
     232                'name'          => __( 'Blocks' ),
    233233                'singular_name' => __( 'Block' ),
    234234                'search_items'  => __( 'Search Blocks' ),
     
    243243            'rest_controller_class' => 'WP_REST_Blocks_Controller',
    244244            'capability_type'       => 'block',
    245             'capabilities' => array(
     245            'capabilities'          => array(
    246246                // You need to be able to edit posts, in order to read blocks in their raw form.
    247247                'read'                   => 'edit_posts',
  • branches/5.0/src/wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php

    r43805 r43806  
    9494                return new WP_Error(
    9595                    '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.' ),
    9797                    array(
    9898                        'status' => rest_authorization_required_code(),
Note: See TracChangeset for help on using the changeset viewer.