Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Commit 7b2911e

Browse files
committed
No longer necessary to inlcude the admin file as register_setting has
moved.
1 parent d224337 commit 7b2911e

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

lib/endpoints/class-wp-rest-settings-controller.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ public function update_item( $request ) {
114114
* @return array
115115
*/
116116
protected function get_registered_options() {
117-
require_once ABSPATH . 'wp-admin/includes/plugin.php';
118117
$rest_options = array();
119118

120119
foreach ( get_registered_settings() as $name => $args ) {

plugin.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ function rest_register_settings() {
166166
if ( version_compare( $wp_version, '4.7-alpha', '<' ) ) {
167167
return;
168168
}
169-
require_once ABSPATH . 'wp-admin/includes/plugin.php';
170169

171170
register_setting( 'general', 'blogname', array(
172171
'show_in_rest' => array(

0 commit comments

Comments
 (0)