| @@ -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.53 | |
| 8 | +Version: 5.68 | |
| 9 | 9 | Network: True |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | /* Copyright 2017 WP Remote (email : support@wpremote.com) |
| @@ -84,8 +84,11 @@ | ||
| 84 | 84 | if ((array_key_exists('bvreqmerge', $_POST)) || (array_key_exists('bvreqmerge', $_GET))) { |
| 85 | 85 | $_REQUEST = array_merge($_GET, $_POST); |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | +require_once dirname( __FILE__ ) . '/php_error_monitoring/monitoring.php'; | |
| 89 | +WPRWPPHPErrorMonitoring::init(); | |
| 90 | + | |
| 88 | 91 | if ($bvinfo->hasValidDBVersion()) { |
| 89 | 92 | if ($bvinfo->isServiceActive('activity_log')) { |
| 90 | 93 | require_once dirname( __FILE__ ) . '/wp_actlog.php'; |
| 91 | 94 | $bvconfig = $bvinfo->config; |
| @@ -128,8 +131,30 @@ | ||
| 128 | 131 | add_filter('frm_is_field_hidden', '__return_true', PHP_INT_MAX, 3); |
| 129 | 132 | |
| 130 | 133 | #handling of WP Forms plugin |
| 131 | 134 | add_filter('wpforms_process_bypass_captcha', '__return_true', PHP_INT_MAX, 3); |
| 135 | + | |
| 136 | + #handling of Forminator plugin | |
| 137 | + if (defined('WP_PLUGIN_DIR')) { | |
| 138 | + $abstractFrontActionFilePath = WP_PLUGIN_DIR . '/forminator/library/abstracts/abstract-class-front-action.php'; | |
| 139 | + $frontActionFilePath = WP_PLUGIN_DIR . '/forminator/library/modules/custom-forms/front/front-action.php'; | |
| 140 | + | |
| 141 | + if (file_exists($abstractFrontActionFilePath) && file_exists($frontActionFilePath)) { | |
| 142 | + require_once $abstractFrontActionFilePath; | |
| 143 | + require_once $frontActionFilePath; | |
| 144 | + if (class_exists('Forminator_CForm_Front_Action')) { | |
| 145 | + Forminator_CForm_Front_Action::$hidden_fields[] = "bv-stripe-"; | |
| 146 | + } | |
| 147 | + } | |
| 148 | + } | |
| 149 | + | |
| 150 | + #handling of CleanTalk Antispam plugin | |
| 151 | + add_action('init', function() { | |
| 152 | + global $apbct; | |
| 153 | + if (isset($apbct) && is_object($apbct)) { | |
| 154 | + $apbct->settings['forms__contact_forms_test'] = 0; | |
| 155 | + } | |
| 156 | + }); | |
| 132 | 157 | } else { |
| 133 | 158 | define('WPRBASEPATH', plugin_dir_path(__FILE__)); |
| 134 | 159 | |
| 135 | 160 | |
| @@ -156,11 +181,17 @@ | ||
| 156 | 181 | } else { |
| 157 | 182 | if ($bvinfo->hasValidDBVersion()) { |
| 158 | 183 | if ($bvinfo->isProtectModuleEnabled()) { |
| 159 | 184 | require_once dirname( __FILE__ ) . '/protect/protect.php'; |
| 160 | - add_action('clear_pt_config', array('WPRProtect_V553', 'uninstall')); | |
| 161 | - if ($bvinfo->isActivePlugin() && !(defined( 'WP_CLI' ) && WP_CLI)) { | |
| 162 | - WPRProtect_V553::init(WPRProtect_V553::MODE_WP); | |
| 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 | + | |
| 192 | + if ($bvinfo->isActivePlugin()) { | |
| 193 | + WPRProtect_V568::init(WPRProtect_V568::MODE_WP); | |
| 163 | 194 | } |
| 164 | 195 | } |
| 165 | 196 | |
| 166 | 197 | if ($bvinfo->isDynSyncModuleEnabled()) { |