| @@ -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: 5.65 | |
| 8 | +Version: 5.68 | |
| 9 | 9 | Network: True |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | /* Copyright 2017 WP Remote (email : support@wpremote.com) |
| @@ -181,11 +181,17 @@ | ||
| 181 | 181 | } else { |
| 182 | 182 | if ($bvinfo->hasValidDBVersion()) { |
| 183 | 183 | if ($bvinfo->isProtectModuleEnabled()) { |
| 184 | 184 | require_once dirname( __FILE__ ) . '/protect/protect.php'; |
| 185 | - add_action('clear_pt_config', array('WPRProtect_V565', 'uninstall')); | |
| 185 | + //For backward compatibility. | |
| 186 | + WPRProtect_V568::$settings = new WPRWPSettings(); | |
| 187 | + WPRProtect_V568::$db = new WPRWPDb(); | |
| 188 | + WPRProtect_V568::$info = new WPRInfo(WPRProtect_V568::$settings); | |
| 189 | + | |
| 190 | + add_action('clear_pt_config', array('WPRProtect_V568', 'uninstall')); | |
| 191 | + | |
| 186 | 192 | if ($bvinfo->isActivePlugin()) { |
| 187 | - WPRProtect_V565::init(WPRProtect_V565::MODE_WP); | |
| 193 | + WPRProtect_V568::init(WPRProtect_V568::MODE_WP); | |
| 188 | 194 | } |
| 189 | 195 | } |
| 190 | 196 | |
| 191 | 197 | if ($bvinfo->isDynSyncModuleEnabled()) { |