diff --git a/class/class-mainwp-child.php b/class/class-mainwp-child.php index a7434eb..848fa3e 100644 --- a/class/class-mainwp-child.php +++ b/class/class-mainwp-child.php @@ -265,9 +265,7 @@ class MainWP_Child { } } - - - function load_all_options() { + public function load_all_options() { global $wpdb; if ( ! defined( 'WP_INSTALLING' ) || ! is_multisite() ) { @@ -346,7 +344,7 @@ class MainWP_Child { } - function update() { + public function update() { $update_version = get_option( 'mainwp_child_update_version' ); if ( $update_version === $this->update_version ) { @@ -396,24 +394,6 @@ class MainWP_Child { 'mainwp_kwl_statistic_data_', 'mainwp_kwl_enable_statistic', 'mainwpKeywordLinks', - // 'mainwp_branding_ext_enabled', - // 'mainwp_branding_plugin_header', - // 'mainwp_branding_support_email', - // 'mainwp_branding_support_message', - // 'mainwp_branding_remove_restore', - // 'mainwp_branding_remove_setting', - // 'mainwp_branding_remove_wp_tools', - // 'mainwp_branding_remove_wp_setting', - // 'mainwp_branding_remove_permalink', - // 'mainwp_branding_button_contact_label', - // 'mainwp_branding_send_email_message', - // 'mainwp_branding_message_return_sender', - // 'mainwp_branding_submit_button_title', - // 'mainwp_branding_disable_wp_branding', - // 'mainwp_branding_extra_settings', - // 'mainwp_branding_child_hide', - // 'mainwp_branding_show_support', - // 'mainwp_branding_disable_change', ); foreach ( $options as $option ) { MainWP_Helper::fix_option( $option ); @@ -421,8 +401,6 @@ class MainWP_Child { } elseif ( ( '1.0' === $update_version ) || ( '1.1' === $update_version ) ) { $options = array( 'mainwp_child_pubkey', - // 'mainwp_child_branding_disconnected', - // 'mainwp_branding_plugin_header', 'mainwp_child_update_version', 'mainwp_child_auth', 'mainwp_child_clone_permalink', @@ -435,14 +413,8 @@ class MainWP_Child { 'mainwp_updraftplus_ext_enabled', 'mainwpKeywordLinks', 'mainwp_keyword_links_htaccess_set', - // 'mainwp_branding_button_contact_label', - // 'mainwp_branding_extra_settings', - // 'mainwp_branding_ext_enabled', - // 'mainwp_creport_ext_branding_enabled', 'mainwp_pagespeed_ext_enabled', 'mainwp_linkschecker_ext_enabled', - // 'mainwp_wordfence_ext_enabled', - // 'mainwp_ithemes_ext_enabled', 'mainwp_maintenance_opt_alert_404', ); foreach ( $options as $option ) { @@ -512,7 +484,7 @@ class MainWP_Child { MainWP_Helper::update_option( 'mainwp_child_update_version', $this->update_version, 'yes' ); } - function cron_active() { + public function cron_active() { if ( ! defined( 'DOING_CRON' ) || ! DOING_CRON ) { return; } @@ -598,7 +570,7 @@ class MainWP_Child { } } - function checkOtherAuth() { + public function checkOtherAuth() { $auths = get_option( 'mainwp_child_auth' ); if ( ! $auths ) { @@ -624,7 +596,7 @@ class MainWP_Child { } } - function isValidAuth( $key ) { + public function isValidAuth( $key ) { $auths = get_option( 'mainwp_child_auth' ); if ( ! $auths ) { return false; @@ -638,7 +610,7 @@ class MainWP_Child { return false; } - function template_redirect() { + public function template_redirect() { $this->maintenance_alert_404(); } @@ -651,7 +623,7 @@ class MainWP_Child { return apply_filters( 'mainwp_child_plugin_row_meta', $plugin_meta, $plugin_file, $this->plugin_slug ); } - function admin_menu() { + public function admin_menu() { $branding_opts = MainWP_Child_Branding::Instance()->get_branding_options(); $is_hide = isset( $branding_opts['hide'] ) ? $branding_opts['hide'] : ''; $cancelled_branding = $branding_opts['cancelled_branding']; @@ -753,7 +725,7 @@ class MainWP_Child { } } - function render_pages( $shownPage ) { + public function render_pages( $shownPage ) { $shownPage = ''; if ( isset( $_GET['tab'] ) ) { $shownPage = $_GET['tab']; @@ -988,13 +960,13 @@ class MainWP_Child { init_ajax(); } } - function admin_head() { + public function admin_head() { if ( isset( $_GET['page'] ) && 'mainwp_child_tab' == $_GET['page'] ) { ?>