Ticket #50805: 50805.4.2.patch
File 50805.4.2.patch, 2.3 KB (added by , 5 years ago) |
---|
-
src/wp-includes/rest-api/class-wp-rest-server.php
923 923 if ( ! is_callable( $handler['callback'] ) ) { 924 924 $error = new WP_Error( 925 925 'rest_invalid_handler', 926 __( 'The handler for the route is invalid ' ),926 __( 'The handler for the route is invalid.' ), 927 927 array( 'status' => 500 ) 928 928 ); 929 929 } … … 1021 1021 1022 1022 return new WP_Error( 1023 1023 '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.' ), 1025 1025 array( 'status' => 404 ) 1026 1026 ); 1027 1027 } -
src/wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php
51 51 'args' => array( 52 52 'context' => $this->get_context_param( array( 'default' => 'view' ) ), 53 53 'attributes' => array( 54 'description' => __( 'Attributes for the block ' ),54 'description' => __( 'Attributes for the block.' ), 55 55 'type' => 'object', 56 56 'default' => array(), 57 57 'validate_callback' => static function ( $value, $request ) { -
src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php
87 87 array( 88 88 'args' => array( 89 89 'name' => array( 90 'description' => __( 'Block name ' ),90 'description' => __( 'Block name.' ), 91 91 'type' => 'string', 92 92 ), 93 93 'namespace' => array( 94 'description' => __( 'Block namespace ' ),94 'description' => __( 'Block namespace.' ), 95 95 'type' => 'string', 96 96 ), 97 97 ),