Backup and Restore WordPress – WPBackItUp Backup Plugin - Version 1.29.0

Version Description

Download this release

Release Info

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

Code changes from version 1.28.0 to 1.29.0

lib/includes/class-admin-notices.php CHANGED
@@ -22,6 +22,7 @@ if ( ! class_exists( 'WPBackitup_Admin_Notices' ) ) {
22
  private $BLACK_FRIDAY_2017_PROMO = 'black-friday-2017';
23
  private $SAFE_BETA_PROMO = 'safe-beta-december';
24
  private $INDEPENDENCE_DAY_PROMO = 'independence-day-promo';
 
25
 
26
  public function __construct(){
27
 
@@ -44,6 +45,13 @@ if ( ! class_exists( 'WPBackitup_Admin_Notices' ) ) {
44
  // return $this->INDEPENDENCE_DAY_PROMO;
45
  // }
46
 
 
 
 
 
 
 
 
47
  //Is the safe beta promo active
48
  // if ( false !== $this->get_safe_beta_notice_id()) {
49
  // return $this->SAFE_BETA_PROMO;
@@ -83,9 +91,14 @@ if ( ! class_exists( 'WPBackitup_Admin_Notices' ) ) {
83
  // $notice = $this->get_black_friday_notice();
84
  // $this->show_notice($promo,$notice);
85
  // break;
86
- case $this->INDEPENDENCE_DAY_PROMO:
87
- $promo = sprintf("%s-%s",$this->promo,$this->get_indepence_day_promo_id());
88
- $notice = $this->get_independence_day_notice();
 
 
 
 
 
89
  $this->show_notice($promo,$notice);
90
  break;
91
  default:
@@ -184,6 +197,28 @@ if ( ! class_exists( 'WPBackitup_Admin_Notices' ) ) {
184
  return $id;
185
  }
186
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
187
 
188
  /**
189
  * Get Black Friday Promo ID
@@ -375,5 +410,45 @@ if ( ! class_exists( 'WPBackitup_Admin_Notices' ) ) {
375
 
376
  }
377
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
378
  }
379
  }
22
  private $BLACK_FRIDAY_2017_PROMO = 'black-friday-2017';
23
  private $SAFE_BETA_PROMO = 'safe-beta-december';
24
  private $INDEPENDENCE_DAY_PROMO = 'independence-day-promo';
25
+ private $LABOR_DAY_PROMO = 'labor-day-promo';
26
 
27
  public function __construct(){
28
 
45
  // return $this->INDEPENDENCE_DAY_PROMO;
46
  // }
47
 
48
+ if ( false !== $this->get_labor_day_promo_id()) {
49
+ $wpbacktiup_license = new WPBackItUp_License();
50
+ if (! $wpbacktiup_license->is_premium_license() || ! $wpbacktiup_license->is_license_active() ) {
51
+ return $this->LABOR_DAY_PROMO;
52
+ }
53
+ }
54
+
55
  //Is the safe beta promo active
56
  // if ( false !== $this->get_safe_beta_notice_id()) {
57
  // return $this->SAFE_BETA_PROMO;
91
  // $notice = $this->get_black_friday_notice();
92
  // $this->show_notice($promo,$notice);
93
  // break;
94
+ // case $this->INDEPENDENCE_DAY_PROMO:
95
+ // $promo = sprintf("%s-%s",$this->promo,$this->get_indepence_day_promo_id());
96
+ // $notice = $this->get_independence_day_notice();
97
+ // $this->show_notice($promo,$notice);
98
+ // break;
99
+ case $this->LABOR_DAY_PROMO:
100
+ $promo = sprintf("%s-%s",$this->promo,$this->get_labor_day_promo_id());
101
+ $notice = $this->get_labor_day_notice();
102
  $this->show_notice($promo,$notice);
103
  break;
104
  default:
197
  return $id;
198
  }
199
 
200
+ /**
201
+ * Get Labor Day promo ID
202
+ *
203
+ * @return bool|int false = no promo
204
+ *
205
+ */
206
+ private function get_labor_day_promo_id() {
207
+ $id = false;
208
+
209
+ //12:00 AM EST = 5:00 AM UTC
210
+ //11:59 PM EST = 4:59 AM UTC
211
+
212
+ $promo_start = date( "Y-m-d H:i", strtotime( "29 August 2018 5:00 AM UTC" ) );
213
+ $promo_end = date( "Y-m-d H:i", strtotime( "04 September 2018 4:59 AM UTC" ) );
214
+
215
+ if ( $this->today >= $promo_start && $this->today <= $promo_end ) {
216
+ $id = 0;
217
+ }
218
+
219
+ return $id;
220
+ }
221
+
222
 
223
  /**
224
  * Get Black Friday Promo ID
410
 
411
  }
412
 
413
+ /**
414
+ * Get Labor day promo
415
+ *
416
+ * @return array|false false on no notice
417
+ */
418
+ private function get_labor_day_notice() {
419
+ $message= array();
420
+ $link_1=array();
421
+ $link_label_1=array();
422
+ $link_label_2=array();
423
+ $link_label_3=array();
424
+ $days_after=array();
425
+ $temp_days_after=array();
426
+
427
+ $id = $this->get_labor_day_promo_id();
428
+ if (false===$id) return false;
429
+
430
+ $message[]=sprintf( "%s<p>%s<p>%s",
431
+ '<h2>' . esc_html__( "Celebrate Labor Day with WPBackItUp and Save 30%!", "wp-backitup") . ' </h2>',
432
+ __( "WPBackItUp would like to wish a Happy Labor Day to all Americans!", "wp-backitup" ),
433
+ __( "From now until September 4th use the discount code: <b>LaborDay2018</b> at checkout and receive <b>30%</b> off WPBackItUp Premium.", "wp-backitup" )
434
+ );
435
+ $days_after[]=0;
436
+ $temp_days_after[]=1;
437
+ $link_1[] = "https://www.wpbackitup.com/pricing-purchase/?utm_medium=plugin&utm_source=wp-backitup&utm_campaign=plugin-labor-day-promo";
438
+ $link_label_1[] = esc_html__( 'Buy now!', 'wp-backitup' );
439
+ $link_label_2[] = esc_html__( 'Remind me later', 'wp-backitup' );
440
+ $link_label_3[] = esc_html__( 'I already purchased', 'wp-backitup' );
441
+
442
+
443
+ return array(
444
+ 'message'=>$message[$id],
445
+ 'days_after'=>$days_after[$id],
446
+ 'temp_days_after'=>$temp_days_after[$id],
447
+ 'link_1'=>$link_1[$id],
448
+ 'link_label_1'=>$link_label_1[$id],
449
+ 'link_label_2'=>$link_label_2[$id],
450
+ 'link_label_3'=>$link_label_3[$id],
451
+ );
452
+ }
453
  }
454
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: backup, backups, back up, backup plugin, database backup, multisite backup
4
  Requires at least: 3.8.0
5
  Requires PHP: 5.2.4
6
  Tested up to: 4.9
7
- Stable tag: 1.27.0
8
  Author URI: https://www.wpbackitup.com
9
  Donate link: https://www.wpbackitup.com
10
  License: GPLv2 or later
@@ -19,7 +19,7 @@ WPBackItUp generates a compressed backup of your entire website no matter how la
19
 
20
  The WPBackItUp backup plugin has been available to the WordPress community since **2012** and is used to back up more than **30,000** websites every day. It's one of the most widely **tested**, **reliable**, and **highly rated** backup plugins available! And with our long history, you can feel confident that we are going to be around for many years to come.
21
 
22
- [vimeo https://vimeo.com/278025146]
23
 
24
  = The Simplest Way to Safeguard Your WordPress Site! =
25
  Simply install WPBackItUp and within minutes you will have a complete backup of your entire site.
@@ -217,6 +217,11 @@ Our online documentation and full list of FAQs can be found at [support.wpbackit
217
 
218
 
219
  == Changelog ==
 
 
 
 
 
220
  = 1.28 =
221
  *Release Date - August 13, 2018
222
 
4
  Requires at least: 3.8.0
5
  Requires PHP: 5.2.4
6
  Tested up to: 4.9
7
+ Stable tag: 1.28.0
8
  Author URI: https://www.wpbackitup.com
9
  Donate link: https://www.wpbackitup.com
10
  License: GPLv2 or later
19
 
20
  The WPBackItUp backup plugin has been available to the WordPress community since **2012** and is used to back up more than **30,000** websites every day. It's one of the most widely **tested**, **reliable**, and **highly rated** backup plugins available! And with our long history, you can feel confident that we are going to be around for many years to come.
21
 
22
+ [vimeo https://vimeo.com/287648431]
23
 
24
  = The Simplest Way to Safeguard Your WordPress Site! =
25
  Simply install WPBackItUp and within minutes you will have a complete backup of your entire site.
217
 
218
 
219
  == Changelog ==
220
+ = 1.29 =
221
+ *Release Date - August 29, 2018
222
+
223
+ * UPDATE : Update Admin Notices and add Labor Day Promo
224
+
225
  = 1.28 =
226
  *Release Date - August 13, 2018
227
 
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.28.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', 28);
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.29.0
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', 29);
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