--- a/wp/wp-includes/rest-api/class-wp-rest-response.php Mon Oct 14 18:06:33 2019 +0200
+++ b/wp/wp-includes/rest-api/class-wp-rest-response.php Mon Oct 14 18:28:13 2019 +0200
@@ -193,7 +193,7 @@
}
/**
- * Retrieves the handler that was responsible for generating the response.
+ * Sets the handler that was responsible for generating the response.
*
* @since 4.4.0
*
@@ -232,7 +232,7 @@
$data = $this->get_data();
$error->add( $data['code'], $data['message'], $data['data'] );
if ( ! empty( $data['additional_errors'] ) ) {
- foreach( $data['additional_errors'] as $err ) {
+ foreach ( $data['additional_errors'] as $err ) {
$error->add( $err['code'], $err['message'], $err['data'] );
}
}
@@ -253,8 +253,8 @@
public function get_curies() {
$curies = array(
array(
- 'name' => 'wp',
- 'href' => 'https://api.w.org/{rel}',
+ 'name' => 'wp',
+ 'href' => 'https://api.w.org/{rel}',
'templated' => true,
),
);