VaultPress - Version 1.6.3

Version Description

  • Bugfix: Make sure existing empty key and secret options are always strings. This fixes an error when run with HHVM.
  • Bugfix: Detect if the plugin has been installed on localhost and show an error.
  • CSS Fix: Stop the "Register" button from bouncing around when clicked.
Download this release

Release Info

Developer briancolinger
Plugin Icon 128x128 VaultPress
Version 1.6.3
Comparing to
See all releases

Code changes from version 1.6.2 to 1.6.3

Files changed (3) hide show
  1. readme.txt +7 -2
  2. styles.css +0 -1
  3. vaultpress.php +21 -7
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: 3.9.1
6
- Stable tag: 1.6.2
7
  License: GPLv2
8
 
9
  VaultPress is a subscription service offering realtime backup, automated security scanning, and support from WordPress experts.
@@ -51,9 +51,14 @@ 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.2 =
55
- * Bugfix: Make sure the key and secret options are always strings. This fixes an error when run with HHVM.
56
  * Feature: Instantly register for a VaultPress trial via Jetpack.
 
57
 
58
  = 1.6.1 =
59
  * Security: Add a new security hotfix.
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: 3.9.1
6
+ Stable tag: 1.6.3
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.3 =
55
+ * Bugfix: Make sure existing empty key and secret options are always strings. This fixes an error when run with HHVM.
56
+ * Bugfix: Detect if the plugin has been installed on localhost and show an error.
57
+ * CSS Fix: Stop the "Register" button from bouncing around when clicked.
58
+
59
  = 1.6.2 =
 
60
  * Feature: Instantly register for a VaultPress trial via Jetpack.
61
+ * Bugfix: Make sure the key and secret options are always strings. This fixes an error when run with HHVM.
62
 
63
  = 1.6.1 =
64
  * Security: Add a new security hotfix.
styles.css CHANGED
@@ -117,7 +117,6 @@ Buttons
117
  .vp-botton-secondary:hover,
118
  .vp-botton-secondary:focus {
119
  position: relative;
120
- top: 1px;
121
  background: #ccc;
122
  }
123
 
117
  .vp-botton-secondary:hover,
118
  .vp-botton-secondary:focus {
119
  position: relative;
 
120
  background: #ccc;
121
  }
122
 
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.6.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 @@ if ( !defined( 'ABSPATH' ) )
18
  class VaultPress {
19
  var $option_name = 'vaultpress';
20
  var $db_version = 3;
21
- var $plugin_version = '1.6.2';
22
 
23
  function __construct() {
24
  register_activation_hook( __FILE__, array( $this, 'activate' ) );
@@ -141,11 +141,7 @@ class VaultPress {
141
  return false;
142
  }
143
 
144
- if ( 'key' == $key && !isset( $this->options[$key] ) ) {
145
- return '';
146
- }
147
-
148
- if ( 'secret' == $key && !isset( $this->options[$key] ) ) {
149
  return '';
150
  }
151
 
@@ -340,6 +336,14 @@ class VaultPress {
340
  }
341
 
342
  function ui() {
 
 
 
 
 
 
 
 
343
  if ( !empty( $_GET['error'] ) ) {
344
  $this->error_notice();
345
  $this->clear_connection();
@@ -1664,6 +1668,16 @@ JS;
1664
  return $args;
1665
  }
1666
 
 
 
 
 
 
 
 
 
 
 
1667
  function contact_service( $action, $args = array() ) {
1668
  if ( 'test' != $action && 'register' != $action && !$this->check_connection() )
1669
  return false;
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.6.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
  class VaultPress {
19
  var $option_name = 'vaultpress';
20
  var $db_version = 3;
21
+ var $plugin_version = '1.6.3';
22
 
23
  function __construct() {
24
  register_activation_hook( __FILE__, array( $this, 'activate' ) );
141
  return false;
142
  }
143
 
144
+ if ( ( 'key' == $key || 'secret' == $key ) && empty( $this->options[$key] ) ) {
 
 
 
 
145
  return '';
146
  }
147
 
336
  }
337
 
338
  function ui() {
339
+ if ( $this->is_localhost() ) {
340
+ $this->update_option( 'connection', time() );
341
+ $this->update_option( 'connection_error_code', 'error_localhost' );
342
+ $this->update_option( 'connection_error_message', 'Hostnames such as localhost or 127.0.0.1 can not be reached by vaultpress.com and will not work with the service. Sites must be publicly accessible in order to work with VaultPress.' );
343
+ $this->error_notice();
344
+ return;
345
+ }
346
+
347
  if ( !empty( $_GET['error'] ) ) {
348
  $this->error_notice();
349
  $this->clear_connection();
1668
  return $args;
1669
  }
1670
 
1671
+ function is_localhost() {
1672
+ $site_url = $this->site_url();
1673
+ if ( empty( $site_url ) )
1674
+ return false;
1675
+ $parts = parse_url( $site_url );
1676
+ if ( !empty( $parts['host'] ) && in_array( $parts['host'], array( 'localhost', '127.0.0.1' ) ) )
1677
+ return true;
1678
+ return false;
1679
+ }
1680
+
1681
  function contact_service( $action, $args = array() ) {
1682
  if ( 'test' != $action && 'register' != $action && !$this->check_connection() )
1683
  return false;