Version Description
- Block WordPress auto update feature
Download this release
Release Info
| Developer | ritesh.soni36 |
| Plugin | |
| Version | 4.36 |
| Comparing to | |
| See all releases | |
Code changes from version 4.35 to 4.36
- callback/wings/misc.php +3 -0
- info.php +1 -1
- plugin.php +22 -1
- readme.txt +5 -4
- wp_dynsync.php +1 -1
callback/wings/misc.php
CHANGED
|
@@ -97,6 +97,9 @@ class BVMiscCallback extends BVCallbackBase {
|
|
| 97 |
case "setmanulsignup":
|
| 98 |
$resp = array("setmanulsignup" => $settings->updateOption("bvmanualsignup", true));
|
| 99 |
break;
|
|
|
|
|
|
|
|
|
|
| 100 |
default:
|
| 101 |
$resp = false;
|
| 102 |
}
|
| 97 |
case "setmanulsignup":
|
| 98 |
$resp = array("setmanulsignup" => $settings->updateOption("bvmanualsignup", true));
|
| 99 |
break;
|
| 100 |
+
case "setbvss":
|
| 101 |
+
$resp = array("status" => $settings->updateOption('bv_site_settings', $params['bv_site_settings']));
|
| 102 |
+
break;
|
| 103 |
default:
|
| 104 |
$resp = false;
|
| 105 |
}
|
info.php
CHANGED
|
@@ -9,7 +9,7 @@ if (!class_exists('WPRInfo')) :
|
|
| 9 |
public $badgeinfo = 'wprbadge';
|
| 10 |
public $ip_header_option = 'wpripheader';
|
| 11 |
public $brand_option = 'wprbrand';
|
| 12 |
-
public $version = '4.
|
| 13 |
public $webpage = 'https://wpremote.com';
|
| 14 |
public $appurl = 'https://app.wpremote.com';
|
| 15 |
public $slug = 'wpremote/plugin.php';
|
| 9 |
public $badgeinfo = 'wprbadge';
|
| 10 |
public $ip_header_option = 'wpripheader';
|
| 11 |
public $brand_option = 'wprbrand';
|
| 12 |
+
public $version = '4.36';
|
| 13 |
public $webpage = 'https://wpremote.com';
|
| 14 |
public $appurl = 'https://app.wpremote.com';
|
| 15 |
public $slug = 'wpremote/plugin.php';
|
plugin.php
CHANGED
|
@@ -5,7 +5,7 @@ Plugin URI: https://wpremote.com
|
|
| 5 |
Description: Manage your WordPress site with <a href="https://wpremote.com/">WP Remote</a>.
|
| 6 |
Author: WP Remote
|
| 7 |
Author URI: https://wpremote.com
|
| 8 |
-
Version: 4.
|
| 9 |
Network: True
|
| 10 |
*/
|
| 11 |
|
|
@@ -150,4 +150,25 @@ if ((array_key_exists('bvplugname', $_REQUEST)) && ($_REQUEST['bvplugname'] == "
|
|
| 150 |
$dynsync->init();
|
| 151 |
}
|
| 152 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
}
|
| 5 |
Description: Manage your WordPress site with <a href="https://wpremote.com/">WP Remote</a>.
|
| 6 |
Author: WP Remote
|
| 7 |
Author URI: https://wpremote.com
|
| 8 |
+
Version: 4.36
|
| 9 |
Network: True
|
| 10 |
*/
|
| 11 |
|
| 150 |
$dynsync->init();
|
| 151 |
}
|
| 152 |
|
| 153 |
+
$bv_site_settings = $bvsettings->getOption('bv_site_settings');
|
| 154 |
+
if (isset($bv_site_settings)) {
|
| 155 |
+
if (isset($bv_site_settings['wp_auto_updates'])) {
|
| 156 |
+
$wp_auto_updates = $bv_site_settings['wp_auto_updates'];
|
| 157 |
+
if (array_key_exists('block_auto_update_core', $wp_auto_updates)) {
|
| 158 |
+
add_filter('auto_update_core', '__return_false' );
|
| 159 |
+
}
|
| 160 |
+
if (array_key_exists('block_auto_update_theme', $wp_auto_updates)) {
|
| 161 |
+
add_filter('auto_update_theme', '__return_false' );
|
| 162 |
+
add_filter('themes_auto_update_enabled', '__return_false' );
|
| 163 |
+
}
|
| 164 |
+
if (array_key_exists('block_auto_update_plugin', $wp_auto_updates)) {
|
| 165 |
+
add_filter('auto_update_plugin', '__return_false' );
|
| 166 |
+
add_filter('plugins_auto_update_enabled', '__return_false' );
|
| 167 |
+
}
|
| 168 |
+
if (array_key_exists('block_auto_update_translation', $wp_auto_updates)) {
|
| 169 |
+
add_filter('auto_update_translation', '__return_false' );
|
| 170 |
+
}
|
| 171 |
+
}
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
}
|
readme.txt
CHANGED
|
@@ -4,9 +4,9 @@ Tags: wpremote, remote administration, multiple wordpress, backup, wordpress bac
|
|
| 4 |
Plugin URI: https://wpremote.com/
|
| 5 |
Donate link: https://app.wpremote.com/home/signup
|
| 6 |
Requires at least: 4.0
|
| 7 |
-
Tested up to: 5.
|
| 8 |
Requires PHP: 5.4.0
|
| 9 |
-
Stable tag: 4.
|
| 10 |
License: GPLv2 or later
|
| 11 |
License URI: [http://www.gnu.org/licenses/gpl-2.0.html](http://www.gnu.org/licenses/gpl-2.0.html)
|
| 12 |
|
|
@@ -32,8 +32,9 @@ You can email us at support@wpremote.com for support.
|
|
| 32 |
3. Sign up for an account at wpremote.com and add your site.
|
| 33 |
|
| 34 |
== CHANGELOG ==
|
| 35 |
-
|
| 36 |
-
|
|
|
|
| 37 |
|
| 38 |
= 4.31 =
|
| 39 |
* Fetching Mysql Version
|
| 4 |
Plugin URI: https://wpremote.com/
|
| 5 |
Donate link: https://app.wpremote.com/home/signup
|
| 6 |
Requires at least: 4.0
|
| 7 |
+
Tested up to: 5.6
|
| 8 |
Requires PHP: 5.4.0
|
| 9 |
+
Stable tag: 4.36
|
| 10 |
License: GPLv2 or later
|
| 11 |
License URI: [http://www.gnu.org/licenses/gpl-2.0.html](http://www.gnu.org/licenses/gpl-2.0.html)
|
| 12 |
|
| 32 |
3. Sign up for an account at wpremote.com and add your site.
|
| 33 |
|
| 34 |
== CHANGELOG ==
|
| 35 |
+
|
| 36 |
+
= 4.36 =
|
| 37 |
+
* Block WordPress auto update feature
|
| 38 |
|
| 39 |
= 4.31 =
|
| 40 |
* Fetching Mysql Version
|
wp_dynsync.php
CHANGED
|
@@ -210,7 +210,7 @@ class BVWPDynSync {
|
|
| 210 |
$ping_permitted = true;
|
| 211 |
$ignored_options = $this->get_ignored_options();
|
| 212 |
foreach($ignored_options as $val) {
|
| 213 |
-
if ($val
|
| 214 |
if (preg_match($val, $option_name))
|
| 215 |
$ping_permitted = false;
|
| 216 |
} else {
|
| 210 |
$ping_permitted = true;
|
| 211 |
$ignored_options = $this->get_ignored_options();
|
| 212 |
foreach($ignored_options as $val) {
|
| 213 |
+
if ($val[0] == '/') {
|
| 214 |
if (preg_match($val, $option_name))
|
| 215 |
$ping_permitted = false;
|
| 216 |
} else {
|
