From 6edbcc88ff5ba0acaba8a8e1d2490ed64ff33b63 Mon Sep 17 00:00:00 2001 From: Rachel Baker Date: Thu, 17 Mar 2016 19:16:29 +0000 Subject: [PATCH] REST API: Add `home_url` to API index to avoid confusion with `site_url`. Confusion abound, the API index is the generic term `url` to display the `site_url`. New `home` key will display the `home_url` in the index as well. Fixes #35647. Built from https://develop.svn.wordpress.org/trunk@37031 git-svn-id: http://core.svn.wordpress.org/trunk@36998 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/rest-api/class-wp-rest-server.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/rest-api/class-wp-rest-server.php b/wp-includes/rest-api/class-wp-rest-server.php index 9c8d257096..f795eb1086 100644 --- a/wp-includes/rest-api/class-wp-rest-server.php +++ b/wp-includes/rest-api/class-wp-rest-server.php @@ -945,6 +945,7 @@ class WP_REST_Server { 'name' => get_option( 'blogname' ), 'description' => get_option( 'blogdescription' ), 'url' => get_option( 'siteurl' ), + 'home' => home_url(), 'namespaces' => array_keys( $this->namespaces ), 'authentication' => array(), 'routes' => $this->get_data_for_routes( $this->get_routes(), $request['context'] ), diff --git a/wp-includes/version.php b/wp-includes/version.php index be996ea482..ac7da2357c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-beta4-37030'; +$wp_version = '4.5-beta4-37031'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.