Ticket #50805: 50805.3.patch
File 50805.3.patch, 2.3 KB (added by , 5 years ago) |
---|
-
wp-includes/rest-api/class-wp-rest-server.php
959 959 if ( ! is_callable( $callback ) ) { 960 960 $response = new WP_Error( 961 961 'rest_invalid_handler', 962 __( 'The handler for the route is invalid ' ),962 __( 'The handler for the route is invalid.' ), 963 963 array( 'status' => 500 ) 964 964 ); 965 965 } … … 1089 1089 return $this->error_to_response( 1090 1090 new WP_Error( 1091 1091 'rest_no_route', 1092 __( 'No route was found matching the URL and request method ' ),1092 __( 'No route was found matching the URL and request method.' ), 1093 1093 array( 'status' => 404 ) 1094 1094 ) 1095 1095 ); -
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 ) { -
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 ),