From 40a3bac346cf29e5d6b7cf1bdbfebcd3f85a0f09 Mon Sep 17 00:00:00 2001 From: Rachel Baker Date: Wed, 16 Mar 2016 21:40:42 +0000 Subject: [PATCH] REST API: Remove unused variable `$api_root` from WP_Rest_Server->embed_links() method. After [r36674] the variable `$api_root` is no longer used in this method and should be removed. See #35803. git-svn-id: https://develop.svn.wordpress.org/trunk@37021 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rest-api/class-wp-rest-server.php | 1 - 1 file changed, 1 deletion(-) 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.