Version Description
- 14 Nov 2014 =
- Security: Fetch service IP updates via HTTPS.
- Feature: Don't send backup notifications while mass-deleting spam.
Download this release
Release Info
| Developer | thingalon |
| Plugin | |
| Version | 1.6.6 |
| Comparing to | |
| See all releases | |
Code changes from version 1.6.5 to 1.6.6
- readme.txt +5 -1
- vaultpress.php +28 -3
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: automattic, apokalyptik, briancolinger, josephscott, shaunandrews,
|
|
| 3 |
Tags: security, malware, virus, archive, back up, back ups, backup, backups, scanning, restore, wordpress backup, site backup, website backup
|
| 4 |
Requires at least: 2.9.2
|
| 5 |
Tested up to: 4.0
|
| 6 |
-
Stable tag: 1.6.
|
| 7 |
License: GPLv2
|
| 8 |
|
| 9 |
VaultPress is a subscription service offering realtime backup, automated security scanning, and support from WordPress experts.
|
|
@@ -51,6 +51,10 @@ 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.6.5 - 4 Sep 2014 =
|
| 55 |
* Security: Hotfix for the Slider Revolution plugin.
|
| 56 |
|
| 3 |
Tags: security, malware, virus, archive, back up, back ups, backup, backups, scanning, restore, wordpress backup, site backup, website backup
|
| 4 |
Requires at least: 2.9.2
|
| 5 |
Tested up to: 4.0
|
| 6 |
+
Stable tag: 1.6.6
|
| 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.6.6 - 14 Nov 2014 =
|
| 55 |
+
* Security: Fetch service IP updates via HTTPS.
|
| 56 |
+
* Feature: Don't send backup notifications while mass-deleting spam.
|
| 57 |
+
|
| 58 |
= 1.6.5 - 4 Sep 2014 =
|
| 59 |
* Security: Hotfix for the Slider Revolution plugin.
|
| 60 |
|
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.6.
|
| 7 |
* Author: Automattic
|
| 8 |
* Author URI: http://vaultpress.com/?utm_source=author-uri&utm_medium=plugin-description&utm_campaign=1.0
|
| 9 |
* License: GPL2+
|
|
@@ -18,7 +18,7 @@ if ( !defined( 'ABSPATH' ) )
|
|
| 18 |
class VaultPress {
|
| 19 |
var $option_name = 'vaultpress';
|
| 20 |
var $db_version = 3;
|
| 21 |
-
var $plugin_version = '1.6.
|
| 22 |
|
| 23 |
function __construct() {
|
| 24 |
register_activation_hook( __FILE__, array( $this, 'activate' ) );
|
|
@@ -62,6 +62,29 @@ class VaultPress {
|
|
| 62 |
|
| 63 |
return $instance;
|
| 64 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
|
| 66 |
function activate( $network_wide ) {
|
| 67 |
$type = $network_wide ? 'network' : 'single';
|
|
@@ -948,7 +971,7 @@ class VaultPress {
|
|
| 948 |
$retry = 2;
|
| 949 |
do {
|
| 950 |
$retry--;
|
| 951 |
-
$protocol = '
|
| 952 |
$args['sslverify'] = 'https' == $protocol ? true : false;
|
| 953 |
$r = wp_remote_get( $url=sprintf( "%s://%s/%s", $protocol, $hostname, $path ), $args );
|
| 954 |
if ( 200 == wp_remote_retrieve_response_code( $r ) ) {
|
|
@@ -1927,6 +1950,8 @@ JS;
|
|
| 1927 |
global $vaultpress_pings;
|
| 1928 |
if ( defined( 'WP_IMPORTING' ) && constant( 'WP_IMPORTING' ) )
|
| 1929 |
return;
|
|
|
|
|
|
|
| 1930 |
if ( !array_key_exists( $type, $vaultpress_pings ) )
|
| 1931 |
return;
|
| 1932 |
|
| 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.6.6
|
| 7 |
* Author: Automattic
|
| 8 |
* Author URI: http://vaultpress.com/?utm_source=author-uri&utm_medium=plugin-description&utm_campaign=1.0
|
| 9 |
* License: GPL2+
|
| 18 |
class VaultPress {
|
| 19 |
var $option_name = 'vaultpress';
|
| 20 |
var $db_version = 3;
|
| 21 |
+
var $plugin_version = '1.6.6';
|
| 22 |
|
| 23 |
function __construct() {
|
| 24 |
register_activation_hook( __FILE__, array( $this, 'activate' ) );
|
| 62 |
|
| 63 |
return $instance;
|
| 64 |
}
|
| 65 |
+
|
| 66 |
+
static function register( $registration_key ) {
|
| 67 |
+
$vp = self::init();
|
| 68 |
+
|
| 69 |
+
$nonce = wp_create_nonce( 'vp_register_' . $registration_key );
|
| 70 |
+
$args = array( 'registration_key' => $registration_key, 'nonce' => $nonce );
|
| 71 |
+
$response = $vp->contact_service( 'register', $args );
|
| 72 |
+
|
| 73 |
+
// Check for an error
|
| 74 |
+
if ( ! empty( $response['faultCode'] ) )
|
| 75 |
+
return new WP_Error( $response['faultCode'], $response['faultString'] );
|
| 76 |
+
|
| 77 |
+
// Validate result
|
| 78 |
+
if ( empty( $response['key'] ) || empty( $response['secret'] ) || empty( $response['nonce'] ) || $nonce != $response['nonce'] )
|
| 79 |
+
return new WP_Error( 1, __( 'There was a problem trying to register your VaultPress subscription.' ) );
|
| 80 |
+
|
| 81 |
+
// Store the result, force a connection test.
|
| 82 |
+
$vp->update_option( 'key', $response['key'] );
|
| 83 |
+
$vp->update_option( 'secret', $response['secret'] );
|
| 84 |
+
$vp->check_connection( true );
|
| 85 |
+
|
| 86 |
+
return true;
|
| 87 |
+
}
|
| 88 |
|
| 89 |
function activate( $network_wide ) {
|
| 90 |
$type = $network_wide ? 'network' : 'single';
|
| 971 |
$retry = 2;
|
| 972 |
do {
|
| 973 |
$retry--;
|
| 974 |
+
$protocol = 'https';
|
| 975 |
$args['sslverify'] = 'https' == $protocol ? true : false;
|
| 976 |
$r = wp_remote_get( $url=sprintf( "%s://%s/%s", $protocol, $hostname, $path ), $args );
|
| 977 |
if ( 200 == wp_remote_retrieve_response_code( $r ) ) {
|
| 1950 |
global $vaultpress_pings;
|
| 1951 |
if ( defined( 'WP_IMPORTING' ) && constant( 'WP_IMPORTING' ) )
|
| 1952 |
return;
|
| 1953 |
+
if ( isset( $_GET ) && isset( $_GET['comment_status'] ) && isset( $_GET['delete_all'] ) && 'spam' == $_GET['comment_status'] )
|
| 1954 |
+
return; // Skip pings from mass spam delete.
|
| 1955 |
if ( !array_key_exists( $type, $vaultpress_pings ) )
|
| 1956 |
return;
|
| 1957 |
|
