Skip to content

Move Rest API to performance module #1014

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
merged 2 commits into from
Apr 11, 2025
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 @@ -164,7 +164,6 @@ function () {
require HOSTGATOR_PLUGIN_DIR . '/inc/jetpack.php';
require HOSTGATOR_PLUGIN_DIR . '/inc/LoginRedirect.php';
require HOSTGATOR_PLUGIN_DIR . '/inc/partners.php';
require HOSTGATOR_PLUGIN_DIR . '/inc/RestApi/CachingController.php';
require HOSTGATOR_PLUGIN_DIR . '/inc/RestApi/SettingsController.php';
require HOSTGATOR_PLUGIN_DIR . '/inc/RestApi/rest-api.php';
require HOSTGATOR_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 @@ -124,9 +124,6 @@ public function update_item( $request ) {
case 'emptyTrashDays':
update_option( 'nfd_empty_trash_days', intval( $new_value ) );
break;
case 'cacheLevel':
update_option( 'endurance_cache_level', $new_value );
break;
case 'hasSetHomepage':
update_option( 'bh_has_set_homepage', (bool) $new_value );
break;
Expand Down Expand Up @@ -185,7 +182,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( 'endurance_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(
'HostGator\\RestApi\\CachingController',
'HostGator\\RestApi\\SettingsController',
);

Expand Down
3 changes: 1 addition & 2 deletions languages/wp-plugin-hostgator-es_MX.po
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ msgstr "%1$s requiere la versión de WordPress %2$s o posterior. Actualmente est
msgid "The \"%s\" plugin has been deactivated."
msgstr "El plugin \"%s\" ha sido desactivado."

#: inc/RestApi/CachingController.php:63
#: inc/RestApi/SettingsController.php:204
#: inc/RestApi/SettingsController.php:200
msgid "Sorry, you are not allowed to access this endpoint."
msgstr "Lo sentimos, no tienes permiso para acceder a esta terminal."

Expand Down
3 changes: 1 addition & 2 deletions languages/wp-plugin-hostgator-pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ msgstr "%1$s requer a versão do WordPress %2$s ou posterior. Você está execut
msgid "The \"%s\" plugin has been deactivated."
msgstr "O\"%s\" plugin foi desativado."

#: inc/RestApi/CachingController.php:63
#: inc/RestApi/SettingsController.php:204
#: inc/RestApi/SettingsController.php:200
msgid "Sorry, you are not allowed to access this endpoint."
msgstr "Desculpe, você não tem permissão para acessar este endpoint."

Expand Down
3 changes: 1 addition & 2 deletions languages/wp-plugin-hostgator.pot
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ msgstr ""
msgid "The \"%s\" plugin has been deactivated."
msgstr ""

#: inc/RestApi/CachingController.php:63
#: inc/RestApi/SettingsController.php:204
#: inc/RestApi/SettingsController.php:200
msgid "Sorry, you are not allowed to access this endpoint."
msgstr ""

Expand Down
Loading