| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | Plugin URI: https://wpremote.com |
| 5 | 5 | Description: Manage your WordPress site with <a href="https://wpremote.com/">WP Remote</a>. |
| 6 | 6 | Author: WP Remote |
| 7 | 7 | Author URI: https://wpremote.com |
| 8 | -Version: 4.87 | |
| 8 | +Version: 4.69 | |
| 9 | 9 | Network: True |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | /* Copyright 2017 WP Remote (email : support@wpremote.com) |
| @@ -36,9 +36,8 @@ | ||
| 36 | 36 | require_once dirname( __FILE__ ) . '/wp_api.php'; |
| 37 | 37 | require_once dirname( __FILE__ ) . '/wp_actions.php'; |
| 38 | 38 | require_once dirname( __FILE__ ) . '/info.php'; |
| 39 | 39 | require_once dirname( __FILE__ ) . '/account.php'; |
| 40 | -##WPCACHEMODULE## | |
| 41 | 40 | |
| 42 | 41 | |
| 43 | 42 | $bvsettings = new WPRWPSettings(); |
| 44 | 43 | $bvsiteinfo = new WPRWPSiteInfo(); |
| @@ -54,9 +53,8 @@ | ||
| 54 | 53 | register_deactivation_hook(__FILE__, array($wp_action, 'deactivate')); |
| 55 | 54 | |
| 56 | 55 | add_action('wp_footer', array($wp_action, 'footerHandler'), 100); |
| 57 | 56 | add_action('clear_bv_services_config', array($wp_action, 'clear_bv_services_config')); |
| 58 | -##SOADDUNINSTALLACTION## | |
| 59 | 57 | |
| 60 | 58 | ##WPCLIMODULE## |
| 61 | 59 | if (is_admin()) { |
| 62 | 60 | require_once dirname( __FILE__ ) . '/wp_admin.php'; |
| @@ -63,9 +61,8 @@ | ||
| 63 | 61 | $wpadmin = new WPRWPAdmin($bvsettings, $bvsiteinfo); |
| 64 | 62 | add_action('admin_init', array($wpadmin, 'initHandler')); |
| 65 | 63 | add_filter('all_plugins', array($wpadmin, 'initBranding')); |
| 66 | 64 | add_filter('plugin_row_meta', array($wpadmin, 'hidePluginDetails'), 10, 2); |
| 67 | - add_filter('debug_information', array($wpadmin, 'handlePluginHealthInfo'), 10, 1); | |
| 68 | 65 | if ($bvsiteinfo->isMultisite()) { |
| 69 | 66 | add_action('network_admin_menu', array($wpadmin, 'menu')); |
| 70 | 67 | } else { |
| 71 | 68 | add_action('admin_menu', array($wpadmin, 'menu')); |
| @@ -73,26 +70,15 @@ | ||
| 73 | 70 | add_filter('plugin_action_links', array($wpadmin, 'settingsLink'), 10, 2); |
| 74 | 71 | add_action('admin_head', array($wpadmin, 'removeAdminNotices'), 3); |
| 75 | 72 | add_action('admin_notices', array($wpadmin, 'activateWarning')); |
| 76 | 73 | add_action('admin_enqueue_scripts', array($wpadmin, 'wprsecAdminMenu')); |
| 77 | - ##ALPURGECACHEFUNCTION## | |
| 78 | - ##ALADMINMENU## | |
| 79 | 74 | } |
| 80 | 75 | |
| 76 | + | |
| 81 | 77 | if ((array_key_exists('bvreqmerge', $_POST)) || (array_key_exists('bvreqmerge', $_GET))) { |
| 82 | 78 | $_REQUEST = array_merge($_GET, $_POST); |
| 83 | 79 | } |
| 84 | 80 | |
| 85 | -if ($bvinfo->hasValidDBVersion()) { | |
| 86 | - if ($bvinfo->isServiceActive('activity_log')) { | |
| 87 | - require_once dirname( __FILE__ ) . '/wp_actlog.php'; | |
| 88 | - $bvconfig = $bvinfo->config; | |
| 89 | - $actlog = new BVWPActLog($bvdb, $bvsettings, $bvinfo, $bvconfig['activity_log']); | |
| 90 | - $actlog->init(); | |
| 91 | - } | |
| 92 | - | |
| 93 | -} | |
| 94 | - | |
| 95 | 81 | if ((array_key_exists('bvplugname', $_REQUEST)) && ($_REQUEST['bvplugname'] == "wpremote")) { |
| 96 | 82 | require_once dirname( __FILE__ ) . '/callback/base.php'; |
| 97 | 83 | require_once dirname( __FILE__ ) . '/callback/response.php'; |
| 98 | 84 | require_once dirname( __FILE__ ) . '/callback/request.php'; |
| @@ -163,9 +149,16 @@ | ||
| 163 | 149 | $dynsync = new BVWPDynSync($bvdb, $bvsettings, $bvconfig['dynsync']); |
| 164 | 150 | $dynsync->init(); |
| 165 | 151 | } |
| 166 | 152 | |
| 153 | + if ($bvinfo->isServiceActive('activity_log')) { | |
| 154 | + require_once dirname( __FILE__ ) . '/wp_actlog.php'; | |
| 155 | + $bvconfig = $bvinfo->config; | |
| 156 | + $actlog = new BVWPActLog($bvdb, $bvsettings, $bvinfo, $bvconfig['activity_log']); | |
| 157 | + $actlog->init(); | |
| 167 | 158 | } |
| 159 | + | |
| 160 | + } | |
| 168 | 161 | $bv_site_settings = $bvsettings->getOption('bv_site_settings'); |
| 169 | 162 | if (isset($bv_site_settings)) { |
| 170 | 163 | if (isset($bv_site_settings['wp_auto_updates'])) { |
| 171 | 164 | $wp_auto_updates = $bv_site_settings['wp_auto_updates']; |
| @@ -183,11 +176,7 @@ | ||
| 183 | 176 | if (array_key_exists('block_auto_update_translation', $wp_auto_updates)) { |
| 184 | 177 | add_filter('auto_update_translation', '__return_false' ); |
| 185 | 178 | } |
| 186 | 179 | } |
| 187 | - } | |
| 188 | - | |
| 189 | - if (is_admin()) { | |
| 190 | - add_filter('site_transient_update_plugins', array($wpadmin, 'hidePluginUpdate')); | |
| 191 | 180 | } |
| 192 | 181 | |
| 193 | 182 | } |