wp/wp-includes/rest-api/class-wp-rest-response.php
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 18 be944660c56a
--- a/wp/wp-includes/rest-api/class-wp-rest-response.php	Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-includes/rest-api/class-wp-rest-response.php	Tue Dec 15 13:49:49 2020 +0100
@@ -76,9 +76,9 @@
 	 *
 	 * @since 4.4.0
 	 *
-	 * @param  string $rel  Link relation. Either an IANA registered type, or an absolute URL.
-	 * @param  string $href Optional. Only remove links for the relation matching the given href.
-	 *                      Default null.
+	 * @param string $rel  Link relation. Either an IANA registered type, or an absolute URL.
+	 * @param string $href Optional. Only remove links for the relation matching the given href.
+	 *                     Default null.
 	 */
 	public function remove_link( $rel, $href = null ) {
 		if ( ! isset( $this->links[ $rel ] ) ) {
@@ -154,6 +154,7 @@
 			if ( 'title' === $key ) {
 				$value = '"' . $value . '"';
 			}
+
 			$header .= '; ' . $key . '=' . $value;
 		}
 		$this->header( 'Link', $header, false );
@@ -231,6 +232,7 @@
 		if ( is_array( $this->get_data() ) ) {
 			$data = $this->get_data();
 			$error->add( $data['code'], $data['message'], $data['data'] );
+
 			if ( ! empty( $data['additional_errors'] ) ) {
 				foreach ( $data['additional_errors'] as $err ) {
 					$error->add( $err['code'], $err['message'], $err['data'] );
@@ -285,6 +287,7 @@
 		 * @param array $additional Additional CURIEs to register with the API.
 		 */
 		$additional = apply_filters( 'rest_response_link_curies', array() );
+
 		return array_merge( $curies, $additional );
 	}
 }