Skip to content

Move Rest API to performance module #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ function () {
require BLUEHOST_PLUGIN_DIR . '/inc/jetpack.php';
require BLUEHOST_PLUGIN_DIR . '/inc/LoginRedirect.php';
require BLUEHOST_PLUGIN_DIR . '/inc/partners.php';
require BLUEHOST_PLUGIN_DIR . '/inc/RestApi/CachingController.php';
require BLUEHOST_PLUGIN_DIR . '/inc/RestApi/SettingsController.php';
require BLUEHOST_PLUGIN_DIR . '/inc/RestApi/rest-api.php';
require BLUEHOST_PLUGIN_DIR . '/inc/settings.php';
Expand Down
68 changes: 0 additions & 68 deletions inc/RestApi/CachingController.php

This file was deleted.

4 changes: 0 additions & 4 deletions inc/RestApi/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ public function update_item( $request ) {
case 'emptyTrashDays':
update_option( 'nfd_empty_trash_days', intval( $new_value ) );
break;
case 'cacheLevel':
update_option( 'newfold_cache_level', $new_value );
break;
case 'hasSetHomepage':
update_option( 'bh_has_set_homepage', (bool) $new_value );
break;
Expand Down Expand Up @@ -186,7 +183,6 @@ public function get_current_settings() {
'commentsPerPage' => intval( get_option( 'comments_per_page', 50 ) ),
'contentRevisions' => intval( get_option( 'nfd_wp_post_revisions', 5 ) ),
'emptyTrashDays' => intval( get_option( 'nfd_empty_trash_days', 30 ) ),
'cacheLevel' => intval( get_option( 'newfold_cache_level', 2 ) ),
'hasSetHomepage' => (bool) get_option( 'bh_has_set_homepage', false ),
'showOnFront' => (string) get_option( 'show_on_front' ),
'pageOnFront' => (int) get_option( 'page_on_front' ),
Expand Down
1 change: 0 additions & 1 deletion inc/RestApi/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
function init_rest_api() {

$controllers = array(
'Bluehost\\RestApi\\CachingController',
'Bluehost\\RestApi\\SettingsController',
);

Expand Down
Loading
Loading