From ff49cc7ebf6cbcb5b998be2808b2f94462d59084 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 22 Oct 2015 16:28:40 +0000 Subject: [PATCH] REST API: don't load `wp-admin/includes/admin.php` on every request. Props swissspidy. Fixes #34395. git-svn-id: https://develop.svn.wordpress.org/trunk@35353 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rest-api/class-wp-rest-server.php | 3 --- 1 file changed, 3 deletions(-) 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 87c3bf3c2b..eae12544a6 100644 --- a/src/wp-includes/rest-api/class-wp-rest-server.php +++ b/src/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. *