From 76d14c1d240e5e9c10d136a1444d17b87a2783ed Mon Sep 17 00:00:00 2001 From: Rachel Baker Date: Wed, 16 Mar 2016 21:41:28 +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. Built from https://develop.svn.wordpress.org/trunk@37021 git-svn-id: http://core.svn.wordpress.org/trunk@36988 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/rest-api/class-wp-rest-server.php | 1 - wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/rest-api/class-wp-rest-server.php b/wp-includes/rest-api/class-wp-rest-server.php index cb0756b96b..9c8d257096 100644 --- a/wp-includes/rest-api/class-wp-rest-server.php +++ b/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. diff --git a/wp-includes/version.php b/wp-includes/version.php index 379944956e..ff416ba399 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-beta3-37020'; +$wp_version = '4.5-beta3-37021'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.