WordPress.org

Make WordPress Core

Changeset 48982


Ignore:
Timestamp:
09/16/2020 07:21:03 PM (2 days ago)
Author:
helen
Message:

i18n: Ensure block type strings in the REST API end with a full stop.

Props ramiy, justinahinon.
Fixes #50805.

Location:
trunk/src/wp-includes/rest-api
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/class-wp-rest-server.php

    r48947 r48982  
    924924            $error = new WP_Error(
    925925                'rest_invalid_handler',
    926                 __( 'The handler for the route is invalid' ),
     926                __( 'The handler for the route is invalid.' ),
    927927                array( 'status' => 500 )
    928928            );
     
    10221022        return new WP_Error(
    10231023            'rest_no_route',
    1024             __( 'No route was found matching the URL and request method' ),
     1024            __( 'No route was found matching the URL and request method.' ),
    10251025            array( 'status' => 404 )
    10261026        );
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php

    r48437 r48982  
    5252                        'context'    => $this->get_context_param( array( 'default' => 'view' ) ),
    5353                        'attributes' => array(
    54                             'description'       => __( 'Attributes for the block' ),
     54                            'description'       => __( 'Attributes for the block.' ),
    5555                            'type'              => 'object',
    5656                            'default'           => array(),
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php

    r48173 r48982  
    8888                'args'   => array(
    8989                    'name'      => array(
    90                         'description' => __( 'Block name' ),
     90                        'description' => __( 'Block name.' ),
    9191                        'type'        => 'string',
    9292                    ),
    9393                    'namespace' => array(
    94                         'description' => __( 'Block namespace' ),
     94                        'description' => __( 'Block namespace.' ),
    9595                        'type'        => 'string',
    9696                    ),
Note: See TracChangeset for help on using the changeset viewer.