diff --git a/src/wp-includes/rest-api/class-wp-rest-server.php b/src/wp-includes/rest-api/class-wp-rest-server.php index cb0756b96b..9c8d257096 100644 --- a/src/wp-includes/rest-api/class-wp-rest-server.php +++ b/src/wp-includes/rest-api/class-wp-rest-server.php @@ -520,7 +520,6 @@ class WP_REST_Server { } $embedded = array(); - $api_root = rest_url(); foreach ( $data['_links'] as $rel => $links ) { // Ignore links to self, for obvious reasons.