VaultPress - Version 1.9.3

Version Description

  • 9 November 2017
  • Compatibility update
  • Send a better user-agent string to VaultPress servers
Download this release

Release Info

Developer benedictsinger
Plugin Icon 128x128 VaultPress
Version 1.9.3
Comparing to
See all releases

Code changes from version 1.9.2 to 1.9.3

class.vaultpress-ixr-ssl-client.php CHANGED
@@ -8,8 +8,11 @@ if ( !class_exists( 'IXR_Client' ) )
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' ) )
8
 
9
  class VaultPress_IXR_SSL_Client extends IXR_Client {
10
  var $ssl = false;
11
+ function __construct( $server, $path = false, $port = 80, $timeout = false, $useragent = false ) {
12
  parent::__construct( $server, $path, $port, $timeout );
13
+ if ( ! empty( $useragent ) ) {
14
+ $this->useragent = $useragent;
15
+ }
16
  }
17
  function ssl( $port=443 ) {
18
  if ( !extension_loaded( 'openssl' ) )
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: automattic, apokalyptik, briancolinger, josephscott, shaunandrews, xknown, thingalon, annezazu, rachelsquirrel
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.8
6
- Stable tag: 1.9.2
7
  License: GPLv2
8
 
9
  VaultPress is a subscription service offering real-time backup, automated security scanning, and support from WordPress experts.
@@ -47,6 +47,10 @@ A VaultPress subscription is for a single WordPress site. You can purchase addit
47
  Yes, VaultPress supports Multisite installs. Each site will require its own subscription.
48
 
49
  == Changelog ==
 
 
 
 
50
  = 1.9.2 - 6 July 2017 =
51
  * Compatibility update
52
 
2
  Contributors: automattic, apokalyptik, briancolinger, josephscott, shaunandrews, xknown, thingalon, annezazu, rachelsquirrel
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.9
6
+ Stable tag: 1.9.3
7
  License: GPLv2
8
 
9
  VaultPress is a subscription service offering real-time backup, automated security scanning, and support from WordPress experts.
47
  Yes, VaultPress supports Multisite installs. Each site will require its own subscription.
48
 
49
  == Changelog ==
50
+ = 1.9.3 - 9 November 2017
51
+ * Compatibility update
52
+ * Send a better user-agent string to VaultPress servers
53
+
54
  = 1.9.2 - 6 July 2017 =
55
  * Compatibility update
56
 
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&amp;utm_medium=plugin-description&amp;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&amp;utm_medium=plugin-description&amp;utm_campaign=1.0" rel="nofollow">Need some help?</a>
6
- * Version: 1.9.2
7
  * Author: Automattic
8
  * Author URI: http://vaultpress.com/?utm_source=author-uri&amp;utm_medium=plugin-description&amp;utm_campaign=1.0
9
  * License: GPL2+
@@ -18,7 +18,7 @@ class VaultPress {
18
  var $option_name = 'vaultpress';
19
  var $auto_register_option = 'vaultpress_auto_register';
20
  var $db_version = 4;
21
- var $plugin_version = '1.9.2';
22
 
23
  function __construct() {
24
  register_activation_hook( __FILE__, array( $this, 'activate' ) );
@@ -1760,7 +1760,8 @@ JS;
1760
 
1761
  if ( !class_exists( 'VaultPress_IXR_SSL_Client' ) )
1762
  require_once( dirname( __FILE__ ) . '/class.vaultpress-ixr-ssl-client.php' );
1763
- $client = new VaultPress_IXR_SSL_Client( $hostname, '/xmlrpc.php', 80, $timeout );
 
1764
 
1765
  if ( 'vaultpress.com' == $hostname )
1766
  $client->ssl();
3
  * Plugin Name: VaultPress
4
  * Plugin URI: http://vaultpress.com/?utm_source=plugin-uri&amp;utm_medium=plugin-description&amp;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&amp;utm_medium=plugin-description&amp;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&amp;utm_medium=plugin-description&amp;utm_campaign=1.0" rel="nofollow">Need some help?</a>
6
+ * Version: 1.9.3
7
  * Author: Automattic
8
  * Author URI: http://vaultpress.com/?utm_source=author-uri&amp;utm_medium=plugin-description&amp;utm_campaign=1.0
9
  * License: GPL2+
18
  var $option_name = 'vaultpress';
19
  var $auto_register_option = 'vaultpress_auto_register';
20
  var $db_version = 4;
21
+ var $plugin_version = '1.9.3';
22
 
23
  function __construct() {
24
  register_activation_hook( __FILE__, array( $this, 'activate' ) );
1760
 
1761
  if ( !class_exists( 'VaultPress_IXR_SSL_Client' ) )
1762
  require_once( dirname( __FILE__ ) . '/class.vaultpress-ixr-ssl-client.php' );
1763
+ $useragent = 'VaultPress/' . $this->plugin_version . '; ' . $this->site_url();
1764
+ $client = new VaultPress_IXR_SSL_Client( $hostname, '/xmlrpc.php', 80, $timeout, $useragent );
1765
 
1766
  if ( 'vaultpress.com' == $hostname )
1767
  $client->ssl();
vp-scanner.php CHANGED
@@ -112,7 +112,7 @@ function split_file_to_php_html( $file ) {
112
  * @return array An array with 3 arrays of lines
113
  */
114
  function split_to_php_html( $source ) {
115
- $tokens = token_get_all( $source );
116
 
117
  $ret = array( 'php' => array(), 'php-with-comments' => array(), 'html' => array() );
118
  $current_line = 0;
112
  * @return array An array with 3 arrays of lines
113
  */
114
  function split_to_php_html( $source ) {
115
+ $tokens = @token_get_all( $source );
116
 
117
  $ret = array( 'php' => array(), 'php-with-comments' => array(), 'html' => array() );
118
  $current_line = 0;