Version Description
- 24 Feb 2016 =
- PHP 7 support. Drop support for PHP 4 and versions of WordPress older than 3.2.
- Silence PHP errors when attempting to change the execution time limit when PHP is running in safe mode.
- Prevent database update pings from being stored when not connected to a paid VaultPress account.
Download this release
Release Info
Developer | thingalon |
Plugin | VaultPress |
Version | 1.7.9 |
Comparing to | |
See all releases |
Code changes from version 1.7.8 to 1.7.9
- class.vaultpress-ixr-ssl-client.php +2 -2
- cron-tasks.php +2 -3
- readme.txt +7 -2
- vaultpress.php +10 -7
class.vaultpress-ixr-ssl-client.php
CHANGED
@@ -8,8 +8,8 @@ if ( !class_exists( 'IXR_Client' ) )
|
|
8 |
|
9 |
class VaultPress_IXR_SSL_Client extends IXR_Client {
|
10 |
var $ssl = false;
|
11 |
-
function
|
12 |
-
|
13 |
}
|
14 |
function ssl( $port=443 ) {
|
15 |
if ( !extension_loaded( 'openssl' ) )
|
8 |
|
9 |
class VaultPress_IXR_SSL_Client extends IXR_Client {
|
10 |
var $ssl = false;
|
11 |
+
function __construct( $server, $path = false, $port = 80, $timeout = false ) {
|
12 |
+
parent::__construct( $server, $path, $port, $timeout );
|
13 |
}
|
14 |
function ssl( $port=443 ) {
|
15 |
if ( !extension_loaded( 'openssl' ) )
|
cron-tasks.php
CHANGED
@@ -113,10 +113,9 @@ class VP_Site_Scanner {
|
|
113 |
return $this->_scan_clean_up( $paths, $type );
|
114 |
|
115 |
$default_batch_limit = 400;
|
116 |
-
if ( function_exists( 'set_time_limit' ) )
|
117 |
-
set_time_limit(0);
|
118 |
-
else
|
119 |
$default_batch_limit = 100; // avoid timeouts
|
|
|
120 |
|
121 |
$GLOBALS['vp_signatures'] = get_option( '_vp_signatures' );
|
122 |
if ( empty( $GLOBALS['vp_signatures'] ) )
|
113 |
return $this->_scan_clean_up( $paths, $type );
|
114 |
|
115 |
$default_batch_limit = 400;
|
116 |
+
if ( ! function_exists( 'set_time_limit' ) || ! @set_time_limit( 0 ) ) {
|
|
|
|
|
117 |
$default_batch_limit = 100; // avoid timeouts
|
118 |
+
}
|
119 |
|
120 |
$GLOBALS['vp_signatures'] = get_option( '_vp_signatures' );
|
121 |
if ( empty( $GLOBALS['vp_signatures'] ) )
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== VaultPress ===
|
2 |
Contributors: automattic, apokalyptik, briancolinger, josephscott, shaunandrews, xknown, thingalon
|
3 |
Tags: security, malware, virus, archive, back up, back ups, backup, backups, scanning, restore, wordpress backup, site backup, website backup
|
4 |
-
Requires at least:
|
5 |
Tested up to: 4.4
|
6 |
-
Stable tag: 1.7.
|
7 |
License: GPLv2
|
8 |
|
9 |
VaultPress is a subscription service offering realtime backup, automated security scanning, and support from WordPress experts.
|
@@ -51,6 +51,11 @@ A VaultPress subscription is for a single WordPress site. You can purchase addit
|
|
51 |
Yes, VaultPress supports Multisite installs. Each site will require its own subscription.
|
52 |
|
53 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
54 |
= 1.7.8 - 15 Oct 2015 =
|
55 |
* Security: Hotfix for Akismet < 3.1.5.
|
56 |
|
1 |
=== VaultPress ===
|
2 |
Contributors: automattic, apokalyptik, briancolinger, josephscott, shaunandrews, xknown, thingalon
|
3 |
Tags: security, malware, virus, archive, back up, back ups, backup, backups, scanning, restore, wordpress backup, site backup, website backup
|
4 |
+
Requires at least: 3.2
|
5 |
Tested up to: 4.4
|
6 |
+
Stable tag: 1.7.9
|
7 |
License: GPLv2
|
8 |
|
9 |
VaultPress is a subscription service offering realtime backup, automated security scanning, and support from WordPress experts.
|
51 |
Yes, VaultPress supports Multisite installs. Each site will require its own subscription.
|
52 |
|
53 |
== Changelog ==
|
54 |
+
= 1.7.9 - 24 Feb 2016 =
|
55 |
+
* PHP 7 support. Drop support for PHP 4 and versions of WordPress older than 3.2.
|
56 |
+
* Silence PHP errors when attempting to change the execution time limit when PHP is running in safe mode.
|
57 |
+
* Prevent database update pings from being stored when not connected to a paid VaultPress account.
|
58 |
+
|
59 |
= 1.7.8 - 15 Oct 2015 =
|
60 |
* Security: Hotfix for Akismet < 3.1.5.
|
61 |
|
vaultpress.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: VaultPress
|
4 |
* Plugin URI: http://vaultpress.com/?utm_source=plugin-uri&utm_medium=plugin-description&utm_campaign=1.0
|
5 |
* Description: Protect your content, themes, plugins, and settings with <strong>realtime backup</strong> and <strong>automated security scanning</strong> from <a href="http://vaultpress.com/?utm_source=wp-admin&utm_medium=plugin-description&utm_campaign=1.0" rel="nofollow">VaultPress</a>. Activate, enter your registration key, and never worry again. <a href="http://vaultpress.com/help/?utm_source=wp-admin&utm_medium=plugin-description&utm_campaign=1.0" rel="nofollow">Need some help?</a>
|
6 |
-
* Version: 1.7.
|
7 |
* Author: Automattic
|
8 |
* Author URI: http://vaultpress.com/?utm_source=author-uri&utm_medium=plugin-description&utm_campaign=1.0
|
9 |
* License: GPL2+
|
@@ -17,7 +17,7 @@ defined( 'ABSPATH' ) or die();
|
|
17 |
class VaultPress {
|
18 |
var $option_name = 'vaultpress';
|
19 |
var $db_version = 4;
|
20 |
-
var $plugin_version = '1.7.
|
21 |
|
22 |
function __construct() {
|
23 |
register_activation_hook( __FILE__, array( $this, 'activate' ) );
|
@@ -1055,10 +1055,10 @@ class VaultPress {
|
|
1055 |
// Update local cache of VP plan settings, based on a ping or connection test result
|
1056 |
function update_plan_settings( $message ) {
|
1057 |
if ( array_key_exists( 'do_backups', $message ) )
|
1058 |
-
$this->update_option( 'do_not_backup', ( false === $message['do_backups'] ) );
|
1059 |
|
1060 |
if ( array_key_exists( 'do_backup_pings', $message ) )
|
1061 |
-
$this->update_option( 'do_not_send_backup_pings', ( false === $message['do_backup_pings'] ) );
|
1062 |
}
|
1063 |
|
1064 |
function check_connection( $force_check = false ) {
|
@@ -1085,7 +1085,8 @@ class VaultPress {
|
|
1085 |
// initial connection test to server
|
1086 |
$this->update_option( 'connection_test', true );
|
1087 |
$this->delete_option( 'allow_forwarded_for' );
|
1088 |
-
$
|
|
|
1089 |
|
1090 |
// we can't see the servers at all
|
1091 |
if ( !$connect ) {
|
@@ -2131,8 +2132,10 @@ JS;
|
|
2131 |
usleep(500000);
|
2132 |
} while ( true );
|
2133 |
if ( !$rval ) {
|
2134 |
-
$
|
2135 |
-
|
|
|
|
|
2136 |
}
|
2137 |
$this->reset_pings();
|
2138 |
if ( $close_wpdb ) {
|
3 |
* Plugin Name: VaultPress
|
4 |
* Plugin URI: http://vaultpress.com/?utm_source=plugin-uri&utm_medium=plugin-description&utm_campaign=1.0
|
5 |
* Description: Protect your content, themes, plugins, and settings with <strong>realtime backup</strong> and <strong>automated security scanning</strong> from <a href="http://vaultpress.com/?utm_source=wp-admin&utm_medium=plugin-description&utm_campaign=1.0" rel="nofollow">VaultPress</a>. Activate, enter your registration key, and never worry again. <a href="http://vaultpress.com/help/?utm_source=wp-admin&utm_medium=plugin-description&utm_campaign=1.0" rel="nofollow">Need some help?</a>
|
6 |
+
* Version: 1.7.9
|
7 |
* Author: Automattic
|
8 |
* Author URI: http://vaultpress.com/?utm_source=author-uri&utm_medium=plugin-description&utm_campaign=1.0
|
9 |
* License: GPL2+
|
17 |
class VaultPress {
|
18 |
var $option_name = 'vaultpress';
|
19 |
var $db_version = 4;
|
20 |
+
var $plugin_version = '1.7.9';
|
21 |
|
22 |
function __construct() {
|
23 |
register_activation_hook( __FILE__, array( $this, 'activate' ) );
|
1055 |
// Update local cache of VP plan settings, based on a ping or connection test result
|
1056 |
function update_plan_settings( $message ) {
|
1057 |
if ( array_key_exists( 'do_backups', $message ) )
|
1058 |
+
$this->update_option( 'do_not_backup', ( false === $message['do_backups'] ) || ( '' === $message['do_backups'] ) );
|
1059 |
|
1060 |
if ( array_key_exists( 'do_backup_pings', $message ) )
|
1061 |
+
$this->update_option( 'do_not_send_backup_pings', ( false === $message['do_backup_pings'] ) || ( '' === $message['do_backup_pings'] ) );
|
1062 |
}
|
1063 |
|
1064 |
function check_connection( $force_check = false ) {
|
1085 |
// initial connection test to server
|
1086 |
$this->update_option( 'connection_test', true );
|
1087 |
$this->delete_option( 'allow_forwarded_for' );
|
1088 |
+
$host = ( ! empty( $_SERVER['HTTP_HOST'] ) ) ? $_SERVER['HTTP_HOST'] : parse_url( $this->site_url(), PHP_URL_HOST );
|
1089 |
+
$connect = $this->contact_service( 'test', array( 'host' => $host, 'uri' => $_SERVER['REQUEST_URI'], 'ssl' => is_ssl() ) );
|
1090 |
|
1091 |
// we can't see the servers at all
|
1092 |
if ( !$connect ) {
|
2132 |
usleep(500000);
|
2133 |
} while ( true );
|
2134 |
if ( !$rval ) {
|
2135 |
+
if ( $this->get_option( 'connection_error_code' ) !== -8 ) { // Do not save pings when the subscription is inactive.
|
2136 |
+
$__vp_recursive_ping_lock = true;
|
2137 |
+
$this->ai_ping_insert( serialize( $vaultpress_pings ) );
|
2138 |
+
}
|
2139 |
}
|
2140 |
$this->reset_pings();
|
2141 |
if ( $close_wpdb ) {
|