From 31e0b0612573312d145cd6937331027cbc3eaf9a Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 22 Oct 2015 16:29:28 +0000 Subject: [PATCH] REST API: don't load `wp-admin/includes/admin.php` on every request. Props swissspidy. Fixes #34395. Built from https://develop.svn.wordpress.org/trunk@35353 git-svn-id: http://core.svn.wordpress.org/trunk@35319 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/rest-api/class-wp-rest-server.php | 3 --- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/wp-includes/rest-api/class-wp-rest-server.php b/wp-includes/rest-api/class-wp-rest-server.php index 87c3bf3c2b..eae12544a6 100644 --- a/wp-includes/rest-api/class-wp-rest-server.php +++ b/wp-includes/rest-api/class-wp-rest-server.php @@ -7,9 +7,6 @@ * @since 4.4.0 */ -/** Admin bootstrap */ -require_once( ABSPATH . 'wp-admin/includes/admin.php' ); - /** * Core class used to implement the WordPress REST API server. * diff --git a/wp-includes/version.php b/wp-includes/version.php index e6e4cddd68..d98b312604 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35352'; +$wp_version = '4.4-alpha-35353'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.