Version Description
- Bugfix: Clean up PHP5 strict warnings.
Download this release
Release Info
Developer | thingalon |
Plugin | VaultPress |
Version | 1.4.9 |
Comparing to | |
See all releases |
Code changes from version 1.4.8 to 1.4.9
- class.vaultpress-database.php +0 -4
- class.vaultpress-filesystem.php +0 -4
- class.vaultpress-hotfixes.php +2 -5
- cron-tasks.php +0 -3
- readme.txt +5 -2
- vaultpress.php +6 -10
class.vaultpress-database.php
CHANGED
@@ -5,10 +5,6 @@ class VaultPress_Database {
|
|
5 |
var $table = null;
|
6 |
var $pks = null;
|
7 |
|
8 |
-
function VaultPress_Database() {
|
9 |
-
$this->__construct();
|
10 |
-
}
|
11 |
-
|
12 |
function __construct() {
|
13 |
}
|
14 |
|
5 |
var $table = null;
|
6 |
var $pks = null;
|
7 |
|
|
|
|
|
|
|
|
|
8 |
function __construct() {
|
9 |
}
|
10 |
|
class.vaultpress-filesystem.php
CHANGED
@@ -6,10 +6,6 @@ class VaultPress_Filesystem {
|
|
6 |
var $dir = null;
|
7 |
var $keys = array( 'ino', 'uid', 'gid', 'size', 'mtime', 'blksize', 'blocks' );
|
8 |
|
9 |
-
function VaultPress_Filesystem() {
|
10 |
-
$this->__construct();
|
11 |
-
}
|
12 |
-
|
13 |
function __construct() {
|
14 |
}
|
15 |
|
6 |
var $dir = null;
|
7 |
var $keys = array( 'ino', 'uid', 'gid', 'size', 'mtime', 'blksize', 'blocks' );
|
8 |
|
|
|
|
|
|
|
|
|
9 |
function __construct() {
|
10 |
}
|
11 |
|
class.vaultpress-hotfixes.php
CHANGED
@@ -1,10 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
class VaultPress_Hotfixes {
|
4 |
-
function VaultPress_Hotfixes() {
|
5 |
-
$this->__construct();
|
6 |
-
}
|
7 |
-
|
8 |
function __construct() {
|
9 |
global $wp_version;
|
10 |
|
@@ -237,7 +233,8 @@ class VaultPress_Hotfixes {
|
|
237 |
return $query;
|
238 |
|
239 |
// Pull the post_id which is the last thing in the origin query, after a space, no quotes
|
240 |
-
$
|
|
|
241 |
|
242 |
// Chop off the beginning and end of the original query to get our unsanitized $tb_ping
|
243 |
$tb_ping = substr(
|
1 |
<?php
|
2 |
|
3 |
class VaultPress_Hotfixes {
|
|
|
|
|
|
|
|
|
4 |
function __construct() {
|
5 |
global $wp_version;
|
6 |
|
233 |
return $query;
|
234 |
|
235 |
// Pull the post_id which is the last thing in the origin query, after a space, no quotes
|
236 |
+
$query_parts = explode( " ", $query );
|
237 |
+
$post_id = array_pop( $query_parts );
|
238 |
|
239 |
// Chop off the beginning and end of the original query to get our unsanitized $tb_ping
|
240 |
$tb_ping = substr(
|
cron-tasks.php
CHANGED
@@ -45,9 +45,6 @@ function apply_filters_ref_array($tag, $args) {
|
|
45 |
endif;
|
46 |
|
47 |
class VP_Site_Scanner {
|
48 |
-
function VP_Site_Scanner() {
|
49 |
-
self::__construct();
|
50 |
-
}
|
51 |
function __construct() {
|
52 |
// Only scan once in multisites.
|
53 |
if( function_exists( 'is_main_site' ) && !is_main_site() )
|
45 |
endif;
|
46 |
|
47 |
class VP_Site_Scanner {
|
|
|
|
|
|
|
48 |
function __construct() {
|
49 |
// Only scan once in multisites.
|
50 |
if( function_exists( 'is_main_site' ) && !is_main_site() )
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== VaultPress ===
|
2 |
-
Contributors: automattic, apokalyptik, briancolinger, josephscott, shaunandrews, xknown
|
3 |
Tags: security, malware, virus, backups, scanning
|
4 |
Requires at least: 2.9.2
|
5 |
Tested up to: 3.5.2
|
6 |
-
Stable tag: 1.4.
|
7 |
License: GPLv2
|
8 |
|
9 |
VaultPress is a subscription service offering realtime backup, automated security scanning, and support from WordPress experts.
|
@@ -51,6 +51,9 @@ 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.4.8 =
|
55 |
* Feature: Include styles and images with the plugin instead of loading them externally.
|
56 |
|
1 |
=== VaultPress ===
|
2 |
+
Contributors: automattic, apokalyptik, briancolinger, josephscott, shaunandrews, xknown, thingalon
|
3 |
Tags: security, malware, virus, backups, scanning
|
4 |
Requires at least: 2.9.2
|
5 |
Tested up to: 3.5.2
|
6 |
+
Stable tag: 1.4.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.4.9 =
|
55 |
+
* Bugfix: Clean up PHP5 strict warnings.
|
56 |
+
|
57 |
= 1.4.8 =
|
58 |
* Feature: Include styles and images with the plugin instead of loading them externally.
|
59 |
|
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.4.
|
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,11 +18,7 @@ if ( !defined( 'ABSPATH' ) )
|
|
18 |
class VaultPress {
|
19 |
var $option_name = 'vaultpress';
|
20 |
var $db_version = 3;
|
21 |
-
var $plugin_version = '1.4.
|
22 |
-
|
23 |
-
function VaultPress() {
|
24 |
-
$this->__construct();
|
25 |
-
}
|
26 |
|
27 |
function __construct() {
|
28 |
register_activation_hook( __FILE__, array( $this, 'activate' ) );
|
@@ -731,8 +727,7 @@ class VaultPress {
|
|
731 |
|
732 |
function verify_table( $table ) {
|
733 |
global $wpdb;
|
734 |
-
$
|
735 |
-
$status = $wpdb->get_row( "SHOW TABLE STATUS WHERE Name = '$table'" );
|
736 |
if ( !$status || !$status->Update_time || !$status->Comment || $status->Engine != 'MyISAM' )
|
737 |
return true;
|
738 |
if ( preg_match( '/([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2})/', $status->Comment, $m ) )
|
@@ -1712,7 +1707,7 @@ JS;
|
|
1712 |
if ( $sig[0] === $signature )
|
1713 |
return true;
|
1714 |
|
1715 |
-
$__vp_validate_error = array( 'error' => 'invalid_signed_data'
|
1716 |
return false;
|
1717 |
}
|
1718 |
|
@@ -1863,7 +1858,8 @@ JS;
|
|
1863 |
}
|
1864 |
return;
|
1865 |
case 'db':
|
1866 |
-
$
|
|
|
1867 |
if ( !isset( $vaultpress_pings[$type][$subtype] ) )
|
1868 |
$vaultpress_pings[$type][$subtype] = array();
|
1869 |
if ( in_array( $data, $vaultpress_pings[$type][$subtype] ) )
|
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.4.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+
|
18 |
class VaultPress {
|
19 |
var $option_name = 'vaultpress';
|
20 |
var $db_version = 3;
|
21 |
+
var $plugin_version = '1.4.9';
|
|
|
|
|
|
|
|
|
22 |
|
23 |
function __construct() {
|
24 |
register_activation_hook( __FILE__, array( $this, 'activate' ) );
|
727 |
|
728 |
function verify_table( $table ) {
|
729 |
global $wpdb;
|
730 |
+
$status = $wpdb->get_row( $wpdb->prepare( "SHOW TABLE STATUS WHERE Name = %s", $table ) );
|
|
|
731 |
if ( !$status || !$status->Update_time || !$status->Comment || $status->Engine != 'MyISAM' )
|
732 |
return true;
|
733 |
if ( preg_match( '/([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2})/', $status->Comment, $m ) )
|
1707 |
if ( $sig[0] === $signature )
|
1708 |
return true;
|
1709 |
|
1710 |
+
$__vp_validate_error = array( 'error' => 'invalid_signed_data' );
|
1711 |
return false;
|
1712 |
}
|
1713 |
|
1858 |
}
|
1859 |
return;
|
1860 |
case 'db':
|
1861 |
+
$_keys = array_keys( $data );
|
1862 |
+
$subtype = array_shift( $_keys );
|
1863 |
if ( !isset( $vaultpress_pings[$type][$subtype] ) )
|
1864 |
$vaultpress_pings[$type][$subtype] = array();
|
1865 |
if ( in_array( $data, $vaultpress_pings[$type][$subtype] ) )
|