Backup and Restore WordPress – WPBackItUp Backup Plugin - Version 1.17.0

Version Description

Download this release

Release Info

Developer cssimmon
Plugin Icon 128x128 Backup and Restore WordPress – WPBackItUp Backup Plugin
Version 1.17.0
Comparing to
See all releases

Code changes from version 1.16.0 to 1.17.0

Files changed (3) hide show
  1. lib/includes/class-usage.php +19 -5
  2. readme.txt +7 -2
  3. wp-backitup.php +2 -2
lib/includes/class-usage.php CHANGED
@@ -172,24 +172,38 @@ class WPBackItUp_Usage {
172
  return false;
173
  }
174
 
175
- // Send a maximum of once per week
176
  $last_send = $this->get_last_send();
177
- if ( is_numeric( $last_send ) && $last_send > strtotime( '-1 week' ) && ! $ignore_last_checkin ) {
 
 
178
  WPBackItUp_Logger::log_info($this->log_name,__METHOD__,'Exit 2' );
179
  return false;
180
  }
181
 
 
 
 
 
 
 
 
 
182
  $this->setup_data();
183
- $response = wp_remote_post( 'https://5bx6m4uwn0.execute-api.us-east-1.amazonaws.com/prod/utv2', array(
184
  'method' => 'POST',
185
  'timeout' => 8,
186
  'redirection' => 5,
187
  'httpversion' => '1.1',
188
- 'blocking' => false,
189
  'body' => json_encode( $this->data ),
190
  'user-agent' => 'WPBACKITUP/' . WPBACKITUP__VERSION . '; ' . get_bloginfo( 'url' )
191
  ) );
192
- WPBackItUp_Logger::log_info($this->log_name,__METHOD__,'Usage Tracking Response:' . var_export( $response, true ));
 
 
 
 
193
 
194
  $this->set_last_send();
195
  return true;
172
  return false;
173
  }
174
 
175
+ //get last send date
176
  $last_send = $this->get_last_send();
177
+
178
+ // Never send more than once per day
179
+ if ( is_numeric( $last_send ) && $last_send > strtotime( '-1 day' )) {
180
  WPBackItUp_Logger::log_info($this->log_name,__METHOD__,'Exit 2' );
181
  return false;
182
  }
183
 
184
+ // send once per week
185
+ if ( is_numeric( $last_send ) && $last_send > strtotime( '-1 week' ) && ! $ignore_last_checkin ) {
186
+ WPBackItUp_Logger::log_info($this->log_name,__METHOD__,'Exit 3' );
187
+ return false;
188
+ }
189
+
190
+ $blocking=false;
191
+ if (true===WPBACKITUP__DEBUG) $blocking=true;
192
  $this->setup_data();
193
+ $response = wp_remote_post( 'https://5bx6m4uwn0.execute-api.us-east-1.amazonaws.com/prd/utv2', array(
194
  'method' => 'POST',
195
  'timeout' => 8,
196
  'redirection' => 5,
197
  'httpversion' => '1.1',
198
+ 'blocking' => $blocking,
199
  'body' => json_encode( $this->data ),
200
  'user-agent' => 'WPBACKITUP/' . WPBACKITUP__VERSION . '; ' . get_bloginfo( 'url' )
201
  ) );
202
+
203
+ //Wont wait for response unless blocking is turned on.
204
+ if (true===WPBACKITUP__DEBUG){
205
+ WPBackItUp_Logger::log_info($this->log_name,__METHOD__,'Usage Tracking Response:' . var_export( $response, true ));
206
+ }
207
 
208
  $this->set_last_send();
209
  return true;
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === Backup and Restore WordPress - WPBackItUp Backup Plugin ===
2
  Contributors: wpbackitup, cssimmon, alaminopu, imranshuvo
3
  Tags: backup, backups, back up, backup plugin, database backup, multisite backup, full backup, database, restore, migrate, clone, malware
4
  Requires at least: 3.8.0
5
  Requires PHP: 5.2.4
6
  Tested up to: 4.9
7
- Stable tag: 1.15.7
8
  Author URI: https://www.wpbackitup.com
9
  Donate link: https://www.wpbackitup.com
10
  License: GPLv2 or later
@@ -214,6 +214,11 @@ Our online documentation and full list of FAQs can be found at [support.wpbackit
214
 
215
 
216
  == Changelog ==
 
 
 
 
 
217
  = 1.16 =
218
  *Release Date - May 18, 2018
219
 
1
+ === Backup and Restore WordPress - Backup Plugin ===
2
  Contributors: wpbackitup, cssimmon, alaminopu, imranshuvo
3
  Tags: backup, backups, back up, backup plugin, database backup, multisite backup, full backup, database, restore, migrate, clone, malware
4
  Requires at least: 3.8.0
5
  Requires PHP: 5.2.4
6
  Tested up to: 4.9
7
+ Stable tag: 1.16
8
  Author URI: https://www.wpbackitup.com
9
  Donate link: https://www.wpbackitup.com
10
  License: GPLv2 or later
214
 
215
 
216
  == Changelog ==
217
+ = 1.17 =
218
+ *Release Date - May 19, 2018
219
+
220
+ * UPDATE: Fix issue with ut-API
221
+
222
  = 1.16 =
223
  *Release Date - May 18, 2018
224
 
wp-backitup.php CHANGED
@@ -6,7 +6,7 @@
6
  * Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
7
  * Author: WPBackItUp
8
  * Author URI: https://www.wpbackitup.com
9
- * Version: 1.16.0
10
  * Text Domain: wp-backitup
11
  *
12
  * License: GPL3
@@ -32,7 +32,7 @@ define( 'WPBACKITUP__NAMESPACE', 'wp-backitup' );
32
  define( 'WPBACKITUP__CLASSNAMESPACE', 'WPBackItUp' );
33
 
34
  define( 'WPBACKITUP__MAJOR_VERSION', 1);
35
- define( 'WPBACKITUP__MINOR_VERSION', 16);
36
  define( 'WPBACKITUP__MAINTENANCE_VERSION', 0); //Dont forget to update version in header on WP release
37
  define( 'WPBACKITUP__BUILD_VERSION', 0); //Used for hotfix releases
38
 
6
  * Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
7
  * Author: WPBackItUp
8
  * Author URI: https://www.wpbackitup.com
9
+ * Version: 1.17
10
  * Text Domain: wp-backitup
11
  *
12
  * License: GPL3
32
  define( 'WPBACKITUP__CLASSNAMESPACE', 'WPBackItUp' );
33
 
34
  define( 'WPBACKITUP__MAJOR_VERSION', 1);
35
+ define( 'WPBACKITUP__MINOR_VERSION', 17);
36
  define( 'WPBACKITUP__MAINTENANCE_VERSION', 0); //Dont forget to update version in header on WP release
37
  define( 'WPBACKITUP__BUILD_VERSION', 0); //Used for hotfix releases
38