VaultPress - Version 1.7.6

Version Description

  • 14 Aug 2015 =
  • Improved support for multisite installs with custom domains
  • Improved live-backup support for WooCommerce
  • Tested against WordPress 4.3
Download this release

Release Info

Developer thingalon
Plugin Icon 128x128 VaultPress
Version 1.7.6
Comparing to
See all releases

Code changes from version 1.7.5 to 1.7.6

Files changed (2) hide show
  1. readme.txt +7 -2
  2. vaultpress.php +41 -15
readme.txt CHANGED
@@ -2,8 +2,8 @@
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: 2.9.2
5
- Tested up to: 4.2
6
- Stable tag: 1.7.5
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.5 - 11 Jun 2015 =
55
  * Security: Add a new security hotfix.
56
 
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: 2.9.2
5
+ Tested up to: 4.3
6
+ Stable tag: 1.7.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.7.6 - 14 Aug 2015 =
55
+ * Improved support for multisite installs with custom domains
56
+ * Improved live-backup support for WooCommerce
57
+ * Tested against WordPress 4.3
58
+
59
  = 1.7.5 - 11 Jun 2015 =
60
  * Security: Add a new security hotfix.
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&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.7.5
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+
@@ -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.5';
21
 
22
  function __construct() {
23
  register_activation_hook( __FILE__, array( $this, 'activate' ) );
@@ -814,6 +814,16 @@ class VaultPress {
814
  foreach ( $meta_id as $id )
815
  $this->add_ping( 'db', array( 'postmeta' => $id ) );
816
  }
 
 
 
 
 
 
 
 
 
 
817
 
818
  function verify_table( $table ) {
819
  global $wpdb;
@@ -2205,21 +2215,18 @@ JS;
2205
  $site_url = '';
2206
 
2207
  // compatibility for WordPress MU Domain Mapping plugin
2208
- if ( defined( 'DOMAIN_MAPPING' ) && DOMAIN_MAPPING ) {
2209
- if ( !function_exists( 'domain_mapping_siteurl' ) ) {
2210
-
2211
- if ( !function_exists( 'is_plugin_active' ) )
2212
- require_once ABSPATH . '/wp-admin/includes/plugin.php';
2213
-
2214
- $plugin = 'wordpress-mu-domain-mapping/domain_mapping.php';
2215
- if ( is_plugin_active( $plugin ) )
2216
- include_once( WP_PLUGIN_DIR . '/' . $plugin );
2217
- }
2218
 
2219
- if ( function_exists( 'domain_mapping_siteurl' ) )
2220
- $site_url = domain_mapping_siteurl( false );
 
2221
  }
2222
 
 
 
 
2223
  if ( empty( $site_url ) )
2224
  $site_url = site_url();
2225
 
@@ -2317,9 +2324,28 @@ JS;
2317
  add_action( 'deleted_option', array( $this, 'option_handler' ), 1 );
2318
  add_action( 'updated_option', array( $this, 'option_handler' ), 1 );
2319
  add_action( 'added_option', array( $this, 'option_handler' ), 1 );
2320
-
 
2321
  $this->add_vp_required_filters();
2322
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2323
 
2324
  function add_vp_required_filters() {
2325
  // Log ins
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.7.6
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+
17
  class VaultPress {
18
  var $option_name = 'vaultpress';
19
  var $db_version = 4;
20
+ var $plugin_version = '1.7.6';
21
 
22
  function __construct() {
23
  register_activation_hook( __FILE__, array( $this, 'activate' ) );
814
  foreach ( $meta_id as $id )
815
  $this->add_ping( 'db', array( 'postmeta' => $id ) );
816
  }
817
+
818
+ // WooCommerce notifications
819
+ function woocommerce_tax_rate_handler( $id ) { $this->generic_change_handler( 'woocommerce_tax_rates', array( 'tax_rate_id' => $id ) ); }
820
+ function woocommerce_order_item_handler( $id ) { $this->generic_change_handler( 'woocommerce_order_items', array( 'order_item_id' => $id ) ); }
821
+ function woocommerce_order_item_meta_handler( $id ) { $this->generic_change_handler( 'woocommerce_order_itemmeta', array( 'meta_id' => $id ) ); }
822
+ function woocommerce_attribute_handler( $id ) { $this->generic_change_handler( 'woocommerce_attribute_taxonomies', array( 'attribute_id' => $id ) ); }
823
+
824
+ function generic_change_handler( $table, $key ) {
825
+ $this->add_ping( 'db', array( $table => $key ) );
826
+ }
827
 
828
  function verify_table( $table ) {
829
  global $wpdb;
2215
  $site_url = '';
2216
 
2217
  // compatibility for WordPress MU Domain Mapping plugin
2218
+ if ( defined( 'DOMAIN_MAPPING' ) && DOMAIN_MAPPING && ! function_exists( 'domain_mapping_siteurl' ) ) {
2219
+ if ( !function_exists( 'is_plugin_active' ) )
2220
+ require_once ABSPATH . '/wp-admin/includes/plugin.php';
 
 
 
 
 
 
 
2221
 
2222
+ $plugin = 'wordpress-mu-domain-mapping/domain_mapping.php';
2223
+ if ( is_plugin_active( $plugin ) )
2224
+ include_once( WP_PLUGIN_DIR . '/' . $plugin );
2225
  }
2226
 
2227
+ if ( function_exists( 'domain_mapping_siteurl' ) )
2228
+ $site_url = domain_mapping_siteurl( false );
2229
+
2230
  if ( empty( $site_url ) )
2231
  $site_url = site_url();
2232
 
2324
  add_action( 'deleted_option', array( $this, 'option_handler' ), 1 );
2325
  add_action( 'updated_option', array( $this, 'option_handler' ), 1 );
2326
  add_action( 'added_option', array( $this, 'option_handler' ), 1 );
2327
+
2328
+ $this->add_woocommerce_actions();
2329
  $this->add_vp_required_filters();
2330
  }
2331
+
2332
+ function add_woocommerce_actions() {
2333
+ add_action( 'woocommerce_tax_rate_deleted', array( $this, 'woocommerce_tax_rate_handler' ), 10, 1 );
2334
+ add_action( 'woocommerce_tax_rate_updated', array( $this, 'woocommerce_tax_rate_handler' ), 10, 1 );
2335
+ add_action( 'woocommerce_tax_rate_added', array( $this, 'woocommerce_tax_rate_handler' ), 10, 1 );
2336
+
2337
+ add_action( 'woocommerce_new_order_item', array( $this, 'woocommerce_order_item_handler' ), 10, 1 );
2338
+ add_action( 'woocommerce_update_order_item', array( $this, 'woocommerce_order_item_handler' ), 10, 1 );
2339
+ add_action( 'woocommerce_delete_order_item', array( $this, 'woocommerce_order_item_handler' ), 10, 1 );
2340
+
2341
+ add_action( 'added_order_item_meta', array( $this, 'woocommerce_order_item_meta_handler' ), 10, 1 );
2342
+ add_action( 'updated_order_item_meta', array( $this, 'woocommerce_order_item_meta_handler' ), 10, 1 );
2343
+ add_action( 'deleted_order_item_meta', array( $this, 'woocommerce_order_item_meta_handler' ), 10, 1 );
2344
+
2345
+ add_action( 'woocommerce_attribute_added', array( $this, 'woocommerce_attribute_handler' ), 10, 1 );
2346
+ add_action( 'woocommerce_attribute_updated', array( $this, 'woocommerce_attribute_handler' ), 10, 1 );
2347
+ add_action( 'woocommerce_attribute_deleted', array( $this, 'woocommerce_attribute_handler' ), 10, 1 );
2348
+ }
2349
 
2350
  function add_vp_required_filters() {
2351
  // Log ins