Backup and Restore WordPress – WPBackItUp Backup Plugin - Version 1.30.0

Version Description

Download this release

Release Info

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

Code changes from version 1.29.0 to 1.30.0

js/wp-backitup-premium-components.min.js DELETED
@@ -1 +0,0 @@
1
- var AjaxGetCore=function(e){var t=wpbackitup_local[e];return jQuery.ajax({url:ajaxurl,type:"GET",data:{action:"wp-backitup_"+e,security:t},dataType:"json"})},AjaxPostCore=function(e,t){var t=t||{};return t.action="wp-backitup_"+e,t.security=wpbackitup_local[e],jQuery.ajax({url:ajaxurl,type:"POST",data:t,dataType:"json"})};Vue.use(PrettyCheckbox),Vue.component("schedule-modal",{template:"#schedule-modal-template",props:{},data:function(){return{name:"",startDate:null,frequency:"day",repeatOn:"",timePicker:null,days:[!1,!1,!1,!1,!1,!1,!1],frequencyStrings:[{value:"day",label:"day"},{value:"week",label:"week"},{value:"month",label:"month"}],monthlyStrings:[],monthlyValue:30,enabled:!1,scheduleAlert:!1,scheduleErrorAlert:!1}},methods:{openModal:function(e){this.$refs[e].open()},closeModal:function(e){this.$refs[e].close()},getBackupSchedules:function(){AjaxGetCore("get_backup_schedule").then(function(e){e.success&&(this.name=e.data.name,this.frequency=e.data.frequency,this.enabled=e.data.enabled,this.startDate=new Date(1e3*Number(e.data.start_date)),"day"===this.frequency&&(this.timePicker=e.data.start_time),"month"===this.frequency&&(this.monthlyValue=e.data.day,this.timePicker=e.data.start_time),"week"===this.frequency&&(this.days=e.data.days,this.timePicker=e.data.start_time))}.bind(this))},setBackupSchedules:function(){data={data:{name:this.name,frequency:this.frequency,start_date:this.startDate,start_time:this.timePicker,days:this.days,repeat_on:this.monthlyValue,enabled:this.enabled}},AjaxPostCore("set_backup_schedule",data).then(function(e){e.success?(this.scheduleAlert=!0,this.scheduleErrorAlert=!1):(this.scheduleAlert=!1,this.scheduleErrorAlert=!0)}.bind(this))}},computed:{},mounted:function(){dayInMonth=new Date((new Date).getFullYear(),(new Date).getMonth(),0).getDate(),this.monthlyStrings=Array.apply(null,{length:dayInMonth}).map(function(e,t){return{value:t+1,label:"on day "+(t+1)}}),this.monthlyStrings.push({value:99,label:"last day of month"}),this.getBackupSchedules()}});
 
lib/includes/class-admin-notices.php CHANGED
@@ -15,61 +15,40 @@ if ( ! class_exists( 'WPBackitup_Admin_Notices' ) ) {
15
 
16
  class WPBackitup_Admin_Notices {
17
 
 
 
 
 
 
18
  private $promo;
19
  private $today;
20
 
21
  //PROMO Constants
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
 
29
- $today = date("Y-m-d H:i");
30
- //$today = date("Y-m-d H:i", strtotime("04 July 2018 5:00 AM UTC")); //todo: comment for LIVE
31
- $this->today =$today;
32
-
33
- //IS there a promo to run
34
- $this->promo = $this->get_active_promo();
35
- }
36
-
37
- /**
38
- * Get the active notice
39
- *
40
- */
41
- private function get_active_promo() {
42
-
43
- //Is the independence day sale active?
44
- // if ( false !== $this->get_indepence_day_promo_id()) {
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;
58
- // }
59
- //
60
- //
61
- // //Is the black friday active
62
- // if ( false !== $this->get_black_friday_day_id()) {
63
- // $wpbacktiup_license = new WPBackItUp_License();
64
- //
65
- // //Don't show notice when premium is installed
66
- // if (!$wpbacktiup_license->is_premium_license() || ! $wpbacktiup_license->is_license_active() ) {
67
- // return $this->BLACK_FRIDAY_2017_PROMO;
68
  // }
69
- // }
70
 
71
- return false; //no active promos
72
 
 
 
 
 
73
  }
74
 
75
  /**
@@ -78,29 +57,39 @@ if ( ! class_exists( 'WPBackitup_Admin_Notices' ) ) {
78
  *
79
  */
80
  public function run() {
 
 
 
 
81
  try {
82
 
 
 
 
 
 
 
83
  switch ( $this->promo ) {
84
  // case $this->SAFE_BETA_PROMO:
85
  // $promo = sprintf("%s-%s",$this->promo,$this->get_safe_beta_notice_id());
86
  // $notice = $this->get_safe_beta_notice();
87
  // $this->show_notice($promo,$notice);
88
  // break;
89
- // case $this->BLACK_FRIDAY_2017_PROMO:
90
- // $promo = sprintf("%s-%s",$this->promo,$this->get_black_friday_day_id());
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:
105
  $this->wordpress_review();
106
  }
@@ -110,6 +99,68 @@ if ( ! class_exists( 'WPBackitup_Admin_Notices' ) ) {
110
  }
111
  }
112
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  /**
114
  * WordPress Review Notice
115
  *
@@ -181,21 +232,21 @@ if ( ! class_exists( 'WPBackitup_Admin_Notices' ) ) {
181
  * @return bool|int false = no promo
182
  *
183
  */
184
- private function get_indepence_day_promo_id() {
185
- $id = false;
186
-
187
- //12:00 AM EST = 5:00 AM UTC
188
- //11:59 PM EST = 4:59 AM UTC
189
-
190
- $promo_start = date( "Y-m-d H:i", strtotime( "02 July 2018 5:00 AM UTC" ) );
191
- $promo_end = date( "Y-m-d H:i", strtotime( "08 July 2018 4:59 AM UTC" ) );
192
-
193
- if ( $this->today >= $promo_start && $this->today <= $promo_end ) {
194
- $id = 0;
195
- }
196
-
197
- return $id;
198
- }
199
 
200
  /**
201
  * Get Labor Day promo ID
@@ -203,21 +254,21 @@ if ( ! class_exists( 'WPBackitup_Admin_Notices' ) ) {
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
  /**
@@ -226,7 +277,7 @@ if ( ! class_exists( 'WPBackitup_Admin_Notices' ) ) {
226
  * @return bool|int false = no promo
227
  *
228
  */
229
- // private function get_black_friday_day_id() {
230
  // $id = false;
231
  //
232
  // //12:00 AM EST = 5:00 AM UTC
@@ -253,6 +304,10 @@ if ( ! class_exists( 'WPBackitup_Admin_Notices' ) ) {
253
  // return $id;
254
  // }
255
 
 
 
 
 
256
  /**
257
  * Get Black Friday notice
258
  *
@@ -324,6 +379,147 @@ if ( ! class_exists( 'WPBackitup_Admin_Notices' ) ) {
324
  //
325
  // }
326
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
327
 
328
  /**
329
  * Get SAFE beta promo
@@ -373,82 +569,83 @@ if ( ! class_exists( 'WPBackitup_Admin_Notices' ) ) {
373
  *
374
  * @return array|false false on no notice
375
  */
376
- private function get_independence_day_notice() {
377
- $message= array();
378
- $link_1=array();
379
- $link_label_1=array();
380
- $link_label_2=array();
381
- $link_label_3=array();
382
- $days_after=array();
383
- $temp_days_after=array();
384
-
385
- $id = $this->get_indepence_day_promo_id();
386
- if (false===$id) return false;
387
-
388
- $message[]=sprintf( "%s<p>%s<p>%s",
389
- '<h2>' . esc_html__( "Celebrate Independence Day with WPBackItUp and Save 30%!", "wp-backitup") . ' </h2>',
390
- __( "WPBackItUp would like to wish a happy Independence Day to all Americans!", "wp-backitup" ),
391
- __( "This week only purchases and upgrades of WPBackItUp Premium will automatically receive <b>30%</b> off our regular prices.", "wp-backitup" )
392
- );
393
- $days_after[]=0;
394
- $temp_days_after[]=1;
395
- $link_1[] = "https://www.wpbackitup.com/pricing-purchase/?utm_medium=plugin&utm_source=wp-backitup&utm_campaign=plugin-independence-day-promo";
396
- $link_label_1[] = esc_html__( 'Buy now!', 'wp-backitup' );
397
- $link_label_2[] = esc_html__( 'Remind me later', 'wp-backitup' );
398
- $link_label_3[] = esc_html__( 'I already purchased', 'wp-backitup' );
399
-
400
-
401
- return array(
402
- 'message'=>$message[$id],
403
- 'days_after'=>$days_after[$id],
404
- 'temp_days_after'=>$temp_days_after[$id],
405
- 'link_1'=>$link_1[$id],
406
- 'link_label_1'=>$link_label_1[$id],
407
- 'link_label_2'=>$link_label_2[$id],
408
- 'link_label_3'=>$link_label_3[$id],
409
- );
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
  }
15
 
16
  class WPBackitup_Admin_Notices {
17
 
18
+ private static $default_log = 'debug_notices';
19
+ private $log_name;
20
+
21
+ public $is_wpbackitup_page; //Check whether admin is in backitup pages.
22
+
23
  private $promo;
24
  private $today;
25
 
26
  //PROMO Constants
27
  private $BLACK_FRIDAY_2017_PROMO = 'black-friday-2017';
28
+ private $BLACK_FRIDAY_2018_PROMO = 'black-friday-2018';
29
  private $SAFE_BETA_PROMO = 'safe-beta-december';
30
  private $INDEPENDENCE_DAY_PROMO = 'independence-day-promo';
31
  private $LABOR_DAY_PROMO = 'labor-day-promo';
32
 
33
  public function __construct(){
34
+ try {
35
+ //Only need to perform notices when on wpbackitup
36
+ if(! $this->is_notice_pages()) return;
37
 
38
+ $this->log_name = self::$default_log; //default log name
39
+ $today = new DateTime('now', new DateTimeZone('America/New_York'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
+ //TODO: comment out for LIVE
42
+ // if ($_SERVER["HTTP_HOST"]=="localhost") {
43
+ // $today = new DateTime('2018-11-26 00:00:00', new DateTimeZone('America/New_York'));
 
 
 
 
 
 
 
 
 
 
44
  // }
 
45
 
46
+ $this->today =$today;
47
 
48
+ } catch ( Exception $e ) {
49
+ WPBackItUp_Logger::log_error( $this->log_name, __METHOD__, 'Constructor Exception: ' . $e );
50
+ throw $e;
51
+ }
52
  }
53
 
54
  /**
57
  *
58
  */
59
  public function run() {
60
+
61
+ //Only need to perform notices when on wpbackitup
62
+ if(! $this->is_wpbackitup_page) return;
63
+
64
  try {
65
 
66
+ //error_log("Today:". var_export($today,true));
67
+ WPBackItUp_Logger::log_info($this->log_name,__METHOD__, 'Today:' . var_export($this->today,true));
68
+
69
+ //IS there a promo to run
70
+ $this->promo = $this->get_active_promo();
71
+
72
  switch ( $this->promo ) {
73
  // case $this->SAFE_BETA_PROMO:
74
  // $promo = sprintf("%s-%s",$this->promo,$this->get_safe_beta_notice_id());
75
  // $notice = $this->get_safe_beta_notice();
76
  // $this->show_notice($promo,$notice);
77
  // break;
78
+ case $this->BLACK_FRIDAY_2018_PROMO:
79
+ $promo = sprintf("%s-%s",$this->promo,$this->get_black_friday_day_id_2018());
80
+ $notice = $this->get_black_friday_notice_2018();
81
+ $this->show_notice($promo,$notice);
82
+ break;
83
  // case $this->INDEPENDENCE_DAY_PROMO:
84
  // $promo = sprintf("%s-%s",$this->promo,$this->get_indepence_day_promo_id());
85
  // $notice = $this->get_independence_day_notice();
86
  // $this->show_notice($promo,$notice);
87
  // break;
88
+ // case $this->LABOR_DAY_PROMO:
89
+ // $promo = sprintf("%s-%s",$this->promo,$this->get_labor_day_promo_id());
90
+ // $notice = $this->get_labor_day_notice();
91
+ // $this->show_notice($promo,$notice);
92
+ // break;
93
  default:
94
  $this->wordpress_review();
95
  }
99
  }
100
  }
101
 
102
+ /**
103
+ * Checks whether this is plugins page or wpbackitup pages
104
+ *
105
+ * @return boolean
106
+ *
107
+ */
108
+ public function is_notice_pages(){
109
+ global $pagenow;
110
+
111
+ if(isset($_GET['page'])){
112
+ if ( false !== strpos($_GET['page'],'wp-backitup-backup')){
113
+ $this->is_wpbackitup_page = true;
114
+ }
115
+ }
116
+
117
+ if( $this->is_wpbackitup_page != false ){
118
+ return true;
119
+ }
120
+
121
+ return false;
122
+ }
123
+
124
+ /**
125
+ * Get the active notice
126
+ *
127
+ */
128
+ private function get_active_promo() {
129
+
130
+ //Is the independence day sale active?
131
+ // if ( false !== $this->get_indepence_day_promo_id()) {
132
+ // return $this->INDEPENDENCE_DAY_PROMO;
133
+ // }
134
+
135
+ // if ( false !== $this->get_labor_day_promo_id()) {
136
+ // $wpbacktiup_license = new WPBackItUp_License();
137
+ // if (! $wpbacktiup_license->is_premium_license() || ! $wpbacktiup_license->is_license_active() ) {
138
+ // return $this->LABOR_DAY_PROMO;
139
+ // }
140
+ // }
141
+
142
+ //Is the safe beta promo active
143
+ // if ( false !== $this->get_safe_beta_notice_id()) {
144
+ // return $this->SAFE_BETA_PROMO;
145
+ // }
146
+ //
147
+ //
148
+ // //Is the black friday active
149
+ if ( false !== $this->get_black_friday_day_id_2018()) {
150
+ $wpbacktiup_license = new WPBackItUp_License();
151
+
152
+ //Don't show notice when premium is installed
153
+ if (!$wpbacktiup_license->is_premium_license() || ! $wpbacktiup_license->is_license_active() ) {
154
+ return $this->BLACK_FRIDAY_2018_PROMO;
155
+ }
156
+ }
157
+
158
+ return false; //no active promos
159
+
160
+ }
161
+
162
+
163
+
164
  /**
165
  * WordPress Review Notice
166
  *
232
  * @return bool|int false = no promo
233
  *
234
  */
235
+ // private function get_indepence_day_promo_id() {
236
+ // $id = false;
237
+ //
238
+ // //12:00 AM EST = 5:00 AM UTC
239
+ // //11:59 PM EST = 4:59 AM UTC
240
+ //
241
+ // $promo_start = date( "Y-m-d H:i", strtotime( "02 July 2018 5:00 AM UTC" ) );
242
+ // $promo_end = date( "Y-m-d H:i", strtotime( "08 July 2018 4:59 AM UTC" ) );
243
+ //
244
+ // if ( $this->today >= $promo_start && $this->today <= $promo_end ) {
245
+ // $id = 0;
246
+ // }
247
+ //
248
+ // return $id;
249
+ // }
250
 
251
  /**
252
  * Get Labor Day promo ID
254
  * @return bool|int false = no promo
255
  *
256
  */
257
+ // private function get_labor_day_promo_id() {
258
+ // $id = false;
259
+ //
260
+ // //12:00 AM EST = 5:00 AM UTC
261
+ // //11:59 PM EST = 4:59 AM UTC
262
+ //
263
+ // $promo_start = date( "Y-m-d H:i", strtotime( "29 August 2018 5:00 AM UTC" ) );
264
+ // $promo_end = date( "Y-m-d H:i", strtotime( "04 September 2018 4:59 AM UTC" ) );
265
+ //
266
+ // if ( $this->today >= $promo_start && $this->today <= $promo_end ) {
267
+ // $id = 0;
268
+ // }
269
+ //
270
+ // return $id;
271
+ // }
272
 
273
 
274
  /**
277
  * @return bool|int false = no promo
278
  *
279
  */
280
+ // private function get_black_friday_day_id_2017() {
281
  // $id = false;
282
  //
283
  // //12:00 AM EST = 5:00 AM UTC
304
  // return $id;
305
  // }
306
 
307
+
308
+
309
+
310
+
311
  /**
312
  * Get Black Friday notice
313
  *
379
  //
380
  // }
381
 
382
+ /**
383
+ * Get Promo ID
384
+ *
385
+ * @return bool|int false = no promo
386
+ *
387
+ */
388
+ private function get_black_friday_day_id_2018() {
389
+ $id = false;
390
+
391
+ //Presale - week before thanksgiving - start early to catch people that are gone thanksgiving week
392
+ $sale_start_0 = new DateTime('2018-11-12 00:00:00', new DateTimeZone('America/New_York'));
393
+ $sale_end_0 = new DateTime('2018-11-14 23:59:59' , new DateTimeZone('America/New_York'));
394
+ // error_log('Start 0:' . var_export($sale_start_0->format('Y-m-d H:i'),true));
395
+ // error_log('End 0:' . var_export($sale_end_0->format('Y-m-d H:i'),true));
396
+
397
+
398
+ //Thanksgiving week sale
399
+ $sale_start_1 = new DateTime('2018-11-15 00:00:00', new DateTimeZone('America/New_York'));
400
+ $sale_end_1 = new DateTime('2018-11-22 23:59:00' , new DateTimeZone('America/New_York'));
401
+
402
+
403
+ //Black Friday/Cyber Monday Sale
404
+ $sale_start_2 = new DateTime('2018-11-23 00:00:00', new DateTimeZone('America/New_York'));
405
+ $sale_end_2 = new DateTime('2018-11-25 23:59:59' , new DateTimeZone('America/New_York'));
406
+
407
+ //Last Day of sale Message
408
+ $sale_start_3 = new DateTime('2018-11-26 00:00:00', new DateTimeZone('America/New_York'));
409
+ $sale_end_3 = new DateTime('2018-11-27 23:59:59' , new DateTimeZone('America/New_York'));
410
+
411
+ if ( $this->today >= $sale_start_0 && $this->today <= $sale_end_0 ) {
412
+ $id = 0;
413
+ } elseif ( $this->today >= $sale_start_1 && $this->today <= $sale_end_1 ) {
414
+ $id = 1;
415
+ } elseif ( $this->today >= $sale_start_2 && $this->today <= $sale_end_2 ) {
416
+ $id = 2;
417
+ } elseif ( $this->today >= $sale_start_3 && $this->today <= $sale_end_3 ) {
418
+ $id = 3;
419
+ }
420
+
421
+ return $id;
422
+ }
423
+
424
+ /**
425
+ * Get Black Friday notice
426
+ *
427
+ * @return array|false on no notice
428
+ */
429
+ private function get_black_friday_notice_2018() {
430
+ $message= array();
431
+ $link_1=array();
432
+ $link_label_1=array();
433
+ $link_label_2=array();
434
+ $link_label_3=array();
435
+ $days_after=array();
436
+ $temp_days_after=array();
437
+
438
+ $id = $this->get_black_friday_day_id_2018();
439
+ if (false===$id) return false;
440
+
441
+ /** Pre-Sale
442
+ *
443
+ * Thanksgiving Pre Sale Week Before Thanksgiving - let them know a sale is coming
444
+ *
445
+ */
446
+ $message[]=sprintf( "<div align='center'>%s %s</div><p>%s</p>",
447
+ '<h1>' . esc_html__( "Thanksgiving/Black Friday/Cyber Monday Sale Starts Soon!", "wp-backitup") . ' </h1>',
448
+ '<h2>' .__( "Save 30% on WPBackItUp Premium for a limited time!", "wp-backitup" ). ' </h2>',
449
+ __( "We just wanted to let you know that WPBackItUp will be participating in all the Thanksgiving, Black Friday, Cyber Monday craziness next week.<br/><br/>If you purchase WPBackItUp Premium or upgrade an existing license between <b>November 15, 2018</b> and <b>November 22, 2018</b> you'll get <b>30%</b> off our regular prices.", "wp-backitup" )
450
+ );
451
+
452
+ $days_after[]=0;
453
+ $temp_days_after[]=1;
454
+ $link_1[] = "https://www.wpbackitup.com/pricing-purchase/?utm_medium=plugin&utm_source=wp-backitup&utm_campaign=plugin-black-friday-2018_".$id;
455
+ $link_label_1[] = esc_html__( 'Buy now, I don\'t need the discount!', 'wp-backitup' );
456
+ $link_label_2[] = esc_html__( 'Remind me later', 'wp-backitup' );
457
+ $link_label_3[] = esc_html__( 'I already purchased', 'wp-backitup' );
458
+ /** END Pre-Sale **/
459
+
460
+ /**
461
+ * Thanksgiving Week Sale
462
+ *
463
+ */
464
+ $discount_code = '3PTHX';
465
+ $message[]=sprintf( "<div align='center'>%s %s</div><p>%s</p>%s",
466
+ '<h1>' . esc_html__( "WPBackItUp Thanksgiving week SALE!", "wp-backitup") . ' </h1>',
467
+ '<h2>' .__( "Save 30% on WPBackItUp Premium for a limited time!", "wp-backitup" ). ' </h2>',
468
+ __( "The WPBackItUp Thanksgiving Week sale has started so if you have been thinking about safeguarding your WordPress site with WPBackItUp Premium then now is the time.", "wp-backitup" ),
469
+ __( "Click the link below before <b>November 22, 2018, 3:59 AM UTC</b> and you'll automatically get <b>30% off</b> our regular prices.", "wp-backitup" )
470
+ );
471
+
472
+ $days_after[]=0;
473
+ $temp_days_after[]=1;
474
+ $link_1[] = "https://www.wpbackitup.com/pricing-purchase/?utm_medium=plugin&utm_source=wp-backitup&utm_campaign=plugin-black-friday-2018_".$id .'&discount='.$discount_code;
475
+ $link_label_1[] = esc_html__( 'Buy now and save 30%', 'wp-backitup' );
476
+ $link_label_2[] = esc_html__( 'Remind me later', 'wp-backitup' );
477
+ $link_label_3[] = esc_html__( 'I already purchased', 'wp-backitup' );
478
+
479
+ //Black Friday SALE
480
+ $discount_code = '3PBFX';
481
+ $message[]=sprintf( "<div align='center'>%s %s</div><p>%s</p>%s",
482
+ '<h1>' . esc_html__( "WPBackItUp Black Friday SALE starts NOW!", "wp-backitup") . ' </h1>',
483
+ '<h2>' .__( "Save 30% on WPBackItUp Premium for a limited time!", "wp-backitup" ). ' </h2>',
484
+ __( "The WPBackItUp Black Friday sale has started so if you have been thinking about safeguarding your WordPress site with WPBackItUp Premium then now is the time.", "wp-backitup" ),
485
+ __( "Click the link below before <b>November 25, 2018, 3:59 AM UTC</b> and you'll automatically get <b>30% off</b> our regular prices.", "wp-backitup" )
486
+ );
487
+
488
+ $days_after[]=0;
489
+ $temp_days_after[]=1;
490
+ $link_1[] = "https://www.wpbackitup.com/pricing-purchase/?utm_medium=plugin&utm_source=wp-backitup&utm_campaign=plugin-black-friday-2018_".$id.'&discount='.$discount_code;
491
+ $link_label_1[] = esc_html__( 'Buy now and save 30%', 'wp-backitup' );
492
+ $link_label_2[] = esc_html__( 'Remind me later', 'wp-backitup' );
493
+ $link_label_3[] = esc_html__( 'I already purchased', 'wp-backitup' );
494
+
495
+ //LAST DAY
496
+ $discount_code = '3PCMX';
497
+ $message[]=sprintf( "<div align='center'>%s %s</div><p>%s</p>%s",
498
+ '<h1>' . esc_html__( "WPBackItUp Cyber Monday SALE end SOON!", "wp-backitup") . ' </h1>',
499
+ '<h2>' . esc_html__( "Less than 24 hours left to save 30% on WPBackItUp Premium!", "wp-backitup") . ' </h2>',
500
+ __( "Happy Cyber Monday! Today is your last chance to save <b>30% </b> on WPBackItUp Premium.", "wp-backitup" ),
501
+ __( "Click the link below before the end of the day today <b>(3:59 AM UTC)</b> and you'll automatically get <b>30% off</b> our regular prices.", "wp-backitup" )
502
+ );
503
+ $days_after[]=0;
504
+ $temp_days_after[]=1;
505
+ $link_1[] = "https://www.wpbackitup.com/pricing-purchase/?utm_medium=plugin&utm_source=wp-backitup&utm_campaign=plugin-black-friday-2018_".$id.'&discount='.$discount_code;
506
+ $link_label_1[] = esc_html__( 'Buy now and save 30%', 'wp-backitup' );
507
+ $link_label_2[] = esc_html__( 'Remind me later', 'wp-backitup' );
508
+ $link_label_3[] = esc_html__( 'I already purchased', 'wp-backitup' );
509
+
510
+ $rtn = array(
511
+ 'message'=>$message[$id],
512
+ 'days_after'=>$days_after[$id],
513
+ 'temp_days_after'=>$temp_days_after[$id],
514
+ 'link_1'=>$link_1[$id],
515
+ 'link_label_1'=>$link_label_1[$id],
516
+ 'link_label_2'=>$link_label_2[$id],
517
+ 'link_label_3'=>$link_label_3[$id],
518
+ );
519
+
520
+ return $rtn;
521
+
522
+ }
523
 
524
  /**
525
  * Get SAFE beta promo
569
  *
570
  * @return array|false false on no notice
571
  */
572
+ // private function get_independence_day_notice() {
573
+ // $message= array();
574
+ // $link_1=array();
575
+ // $link_label_1=array();
576
+ // $link_label_2=array();
577
+ // $link_label_3=array();
578
+ // $days_after=array();
579
+ // $temp_days_after=array();
580
+ //
581
+ // $id = $this->get_indepence_day_promo_id();
582
+ // if (false===$id) return false;
583
+ //
584
+ // $message[]=sprintf( "%s<p>%s<p>%s",
585
+ // '<h2>' . esc_html__( "Celebrate Independence Day with WPBackItUp and Save 30%!", "wp-backitup") . ' </h2>',
586
+ // __( "WPBackItUp would like to wish a happy Independence Day to all Americans!", "wp-backitup" ),
587
+ // __( "This week only purchases and upgrades of WPBackItUp Premium will automatically receive <b>30%</b> off our regular prices.", "wp-backitup" )
588
+ // );
589
+ // $days_after[]=0;
590
+ // $temp_days_after[]=1;
591
+ // $link_1[] = "https://www.wpbackitup.com/pricing-purchase/?utm_medium=plugin&utm_source=wp-backitup&utm_campaign=plugin-independence-day-promo";
592
+ // $link_label_1[] = esc_html__( 'Buy now!', 'wp-backitup' );
593
+ // $link_label_2[] = esc_html__( 'Remind me later', 'wp-backitup' );
594
+ // $link_label_3[] = esc_html__( 'I already purchased', 'wp-backitup' );
595
+ //
596
+ //
597
+ // return array(
598
+ // 'message'=>$message[$id],
599
+ // 'days_after'=>$days_after[$id],
600
+ // 'temp_days_after'=>$temp_days_after[$id],
601
+ // 'link_1'=>$link_1[$id],
602
+ // 'link_label_1'=>$link_label_1[$id],
603
+ // 'link_label_2'=>$link_label_2[$id],
604
+ // 'link_label_3'=>$link_label_3[$id],
605
+ // );
606
+ //
607
+ // }
608
 
609
  /**
610
  * Get Labor day promo
611
  *
612
  * @return array|false false on no notice
613
  */
614
+ // private function get_labor_day_notice() {
615
+ // $message= array();
616
+ // $link_1=array();
617
+ // $link_label_1=array();
618
+ // $link_label_2=array();
619
+ // $link_label_3=array();
620
+ // $days_after=array();
621
+ // $temp_days_after=array();
622
+ //
623
+ // $id = $this->get_labor_day_promo_id();
624
+ // if (false===$id) return false;
625
+ //
626
+ // $message[]=sprintf( "%s<p>%s<p>%s",
627
+ // '<h2>' . esc_html__( "Celebrate Labor Day with WPBackItUp and Save 30%!", "wp-backitup") . ' </h2>',
628
+ // __( "WPBackItUp would like to wish a Happy Labor Day to all Americans!", "wp-backitup" ),
629
+ // __( "From now until September 4th use the discount code: <b>LaborDay2018</b> at checkout and receive <b>30%</b> off WPBackItUp Premium.", "wp-backitup" )
630
+ // );
631
+ // $days_after[]=0;
632
+ // $temp_days_after[]=1;
633
+ // $link_1[] = "https://www.wpbackitup.com/pricing-purchase/?utm_medium=plugin&utm_source=wp-backitup&utm_campaign=plugin-labor-day-promo";
634
+ // $link_label_1[] = esc_html__( 'Buy now!', 'wp-backitup' );
635
+ // $link_label_2[] = esc_html__( 'Remind me later', 'wp-backitup' );
636
+ // $link_label_3[] = esc_html__( 'I already purchased', 'wp-backitup' );
637
+ //
638
+ //
639
+ // return array(
640
+ // 'message'=>$message[$id],
641
+ // 'days_after'=>$days_after[$id],
642
+ // 'temp_days_after'=>$temp_days_after[$id],
643
+ // 'link_1'=>$link_1[$id],
644
+ // 'link_label_1'=>$link_label_1[$id],
645
+ // 'link_label_2'=>$link_label_2[$id],
646
+ // 'link_label_3'=>$link_label_3[$id],
647
+ // );
648
+ // }
649
 
 
 
 
 
 
 
 
 
 
 
650
  }
651
  }
lib/includes/class-api.php CHANGED
@@ -147,11 +147,17 @@ class WPBackItUp_API {
147
  $days[] = json_decode($day);
148
  }
149
 
 
 
 
 
 
 
150
  $response = array (
151
  'name'=>$schedule->item->name,
152
  'frequency'=>$schedule->item->frequency,
153
  'days'=>$days,
154
- 'day'=>$schedule->item->repeat_on,
155
  'start_time'=>$schedule->item->start_time,
156
  'start_date'=>strtotime($schedule->item->start_date),
157
  'enabled'=>json_decode($schedule->item->enabled),
@@ -226,7 +232,7 @@ class WPBackItUp_API {
226
  $days_required = 'week' == $form_data['frequency'] ? true : false;
227
  //error_log(var_export($days,true));
228
  if ($days_required){
229
- if (! is_array($form_data['days']) || count($form_data['days'])!=7) {
230
  $errors['days'] = __('Invalid input', 'wp-backitup');
231
  }
232
 
@@ -236,6 +242,8 @@ class WPBackItUp_API {
236
  $day_required = 'month' == $form_data['frequency'] ? true : false;
237
  if ($day_required) {
238
  $this->validate_field($form_data['repeat_on'], 'repeat_on', $errors,null, $day_required);
 
 
239
  }
240
 
241
  if(!empty($errors)){
147
  $days[] = json_decode($day);
148
  }
149
 
150
+ //Repeat is only provided on month
151
+ $day=false;
152
+ if (isset($schedule->item->repeat_on)){
153
+ $day=$schedule->item->repeat_on;
154
+ }
155
+
156
  $response = array (
157
  'name'=>$schedule->item->name,
158
  'frequency'=>$schedule->item->frequency,
159
  'days'=>$days,
160
+ 'day'=>$day,
161
  'start_time'=>$schedule->item->start_time,
162
  'start_date'=>strtotime($schedule->item->start_date),
163
  'enabled'=>json_decode($schedule->item->enabled),
232
  $days_required = 'week' == $form_data['frequency'] ? true : false;
233
  //error_log(var_export($days,true));
234
  if ($days_required){
235
+ if (! is_array($form_data['days']) || count($form_data['days'])<7) {
236
  $errors['days'] = __('Invalid input', 'wp-backitup');
237
  }
238
 
242
  $day_required = 'month' == $form_data['frequency'] ? true : false;
243
  if ($day_required) {
244
  $this->validate_field($form_data['repeat_on'], 'repeat_on', $errors,null, $day_required);
245
+ }else {
246
+ $form_data['repeat_on']=false;
247
  }
248
 
249
  if(!empty($errors)){
lib/includes/class-job-scheduler.php CHANGED
@@ -61,7 +61,11 @@ class WPBackItUp_Job_Scheduler {
61
 
62
  $name = $schedule->item->name;
63
  $days = $schedule->item->days;
64
- $repeat_on = $schedule->item->repeat_on;
 
 
 
 
65
 
66
  //make sure schedule is enabled
67
  $enabled = json_decode($schedule->item->enabled);//saved as string so need to decode again
61
 
62
  $name = $schedule->item->name;
63
  $days = $schedule->item->days;
64
+
65
+ $repeat_on=false;
66
+ if (isset($schedule->item->repeat_on)){
67
+ $repeat_on = $schedule->item->repeat_on;
68
+ }
69
 
70
  //make sure schedule is enabled
71
  $enabled = json_decode($schedule->item->enabled);//saved as string so need to decode again
lib/includes/class-sql.php CHANGED
@@ -40,10 +40,7 @@ class WPBackItUp_SQL {
40
  }
41
 
42
  function __destruct() {
43
- // Close the connection
44
- if (is_object($this->mysqli)){
45
- $this->mysqli->close() ;
46
- }
47
  }
48
 
49
 
40
  }
41
 
42
  function __destruct() {
43
+
 
 
 
44
  }
45
 
46
 
lib/includes/class-utility.php CHANGED
@@ -294,7 +294,7 @@ class WPBackItUp_Utility {
294
  public static function get_anchor_with_utm($pretty, $page, $content = null, $term = null,$domain=WPBACKITUP__SECURESITE_URL){
295
 
296
  $medium='plugin'; //Campaign Medium
297
- $source=WPBACKITUP__NAMESPACE; //plugin name
298
 
299
  $campaign='lite';
300
  $wpbackitup_license= new WPBackItUp_License();
294
  public static function get_anchor_with_utm($pretty, $page, $content = null, $term = null,$domain=WPBACKITUP__SECURESITE_URL){
295
 
296
  $medium='plugin'; //Campaign Medium
297
+ $source=WPBACKITUP__NAMESPACE;
298
 
299
  $campaign='lite';
300
  $wpbackitup_license= new WPBackItUp_License();
lib/includes/class-wpbackitup-admin.php CHANGED
@@ -357,7 +357,6 @@ class WPBackitup_Admin {
357
  wp_enqueue_script($this->namespace . '_vue_pretty_checkbox_ui', WPBACKITUP__PLUGIN_URL . 'js/pretty-checkbox-vue.min.js', array(), $this->version, false);
358
  wp_enqueue_script($this->namespace . '_vue_pretty_element_ui', WPBACKITUP__PLUGIN_URL . 'js/element-ui.min.js', array(), $this->version, false);
359
  wp_enqueue_script($this->namespace . '_vue_components', WPBACKITUP__PLUGIN_URL . 'js/wp-backitup-components.min.js', array(), $this->version, false);
360
- wp_enqueue_script($this->namespace . '_vue_premium_components', WPBACKITUP__PLUGIN_URL . 'js/wp-backitup-premium-components.min.js', array(), $this->version, false);
361
 
362
  // Loading tagit and core JS
363
  wp_enqueue_script( "{$this->namespace}-admin" );
@@ -1965,7 +1964,7 @@ class WPBackitup_Admin {
1965
  */
1966
  public function formatted_version(){
1967
 
1968
- return rtrim ($this->version,'.0');;
1969
  }
1970
 
1971
  /**
357
  wp_enqueue_script($this->namespace . '_vue_pretty_checkbox_ui', WPBACKITUP__PLUGIN_URL . 'js/pretty-checkbox-vue.min.js', array(), $this->version, false);
358
  wp_enqueue_script($this->namespace . '_vue_pretty_element_ui', WPBACKITUP__PLUGIN_URL . 'js/element-ui.min.js', array(), $this->version, false);
359
  wp_enqueue_script($this->namespace . '_vue_components', WPBACKITUP__PLUGIN_URL . 'js/wp-backitup-components.min.js', array(), $this->version, false);
 
360
 
361
  // Loading tagit and core JS
362
  wp_enqueue_script( "{$this->namespace}-admin" );
1964
  */
1965
  public function formatted_version(){
1966
 
1967
+ return rtrim ($this->version,'.0');
1968
  }
1969
 
1970
  /**
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.28.0
8
  Author URI: https://www.wpbackitup.com
9
  Donate link: https://www.wpbackitup.com
10
  License: GPLv2 or later
@@ -217,54 +217,63 @@ Our online documentation and full list of FAQs can be found at [support.wpbackit
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
 
228
  * FIX : Correct additional issue with php 7.0 array initialization in API
229
 
230
  = 1.27 =
231
- *Release Date - August 10, 2018
232
 
233
  * FIX : Correct php 7.0 issue with array initialization in API
234
 
235
  = 1.26 =
236
- *Release Date - August 9, 2018
237
 
238
  * UPDATE : Update to check scheduler job frequency
239
  * UPDATE : Update UI to show new cancel button
240
  * UPDATE : Add support for advanced scheduler
241
 
242
  = 1.25 =
243
- *Release Date - July 19, 2018
244
 
245
  * Fix : Fix plugin update to product id
246
 
247
  = 1.24 =
248
- *Release Date - July 19, 2018
249
 
250
  * UPDATE: Remove Independence Day Promo
251
  * UPDATE: Updates to core to support LITE version of plugin
252
  * Fix : Fix JS error when WPBackItUp-Safe not installed
253
 
254
  = 1.23 =
255
- *Release Date - July 2, 2018
256
 
257
  * UPDATE: Add Independence Day Promo
258
  * Fix : Miscellaneous fixes
259
 
260
  = 1.22 =
261
- *Release Date - June 29, 2018
262
 
263
  * NEW: Add WPBackItUp Toolbar
264
  * UPDATE: Fix alignment on header in dashboard
265
 
266
  = 1.21 =
267
- *Release Date - June 5, 2018
268
 
269
  * UPDATE: Update available backup list to show last 10 backups
270
  * UPDATE: Update backup notification email to use domain instead of blog name
@@ -272,89 +281,89 @@ Our online documentation and full list of FAQs can be found at [support.wpbackit
272
  * UPDATE: Migrate premium code to separate repo
273
 
274
  = 1.20 =
275
- *Release Date - June 1, 2018
276
 
277
  * FIX: Fix broken links on support tab for multi-site
278
  * UPDATE: Minor updates to ut actions
279
 
280
  = 1.19 =
281
- *Release Date - May 25, 2018
282
 
283
  * UPDATE: Minor updates to ut actions
284
 
285
  = 1.18 =
286
- *Release Date - May 22, 2018
287
 
288
  * UPDATE: Minor updates to UI scripts
289
 
290
  = 1.17 =
291
- *Release Date - May 19, 2018
292
 
293
  * UPDATE: Fix issue with ut-API
294
 
295
  = 1.16 =
296
- *Release Date - May 18, 2018
297
 
298
  * UPDATE: Updates for WordPress version 4.9.6
299
  * UPDATE: Updates to usage tracking
300
 
301
  = 1.15.7 =
302
- *Release Date - May 4, 2018
303
 
304
  * UPDATE: Updates to get_open_items_by_group_last_day to include items that are queued and open
305
  * UPDATE: Updates to fire WPBackItUp Safe Log Push Event
306
 
307
  = 1.15.6 =
308
- *Release Date - March 1, 2018
309
 
310
  * FIX: Fix array initialization issue for php 7.1 in task and job meta setters
311
  * UPDATE: Updates to remove api log messages
312
 
313
  = 1.15.5 =
314
- *Release Date - February, 9, 2018
315
 
316
  * UPDATE: Updates to support WPBackItUp Safe Beta Launch
317
  * UPDATE: Updates to WordPress 4.9.4
318
 
319
  = 1.15.4 =
320
- *Release Date - January 3, 2018
321
 
322
  * FIX : Fix security issue with delete log
323
  * UPDATE: Admin notice updates
324
  * UPDATE: Enhancements to support WPBackItUp Safe cloud storage
325
 
326
  = 1.15.3 =
327
- *Release Date - November 16, 2017
328
 
329
  * FIX: Fix minor issue with admin notice
330
 
331
  = 1.15.1 =
332
- *Release Date - November 15, 2017
333
 
334
  * UPDATE: Enhancements to support WordPress Version 4.9
335
  * UPDATE: Enhancements to support WPBackItUp Safe
336
  * UPDATE: Added logging to track infinite loop in plugin validation
337
 
338
  = 1.15 =
339
- *Release Date - September 29, 2017
340
 
341
  * UPDATE: Enhancements to settings user interface
342
  * UPDATE: Enhancements to backup engine to support Cloud Storage
343
  * UPDATE: Extend maximum zip file size to 2GB
344
 
345
  = 1.14.7 =
346
- *Release Date - July 19, 2017
347
 
348
  * FIX: Fix issues with CSS filter on PHP 5.2
349
 
350
  = 1.14.6 =
351
- *Release Date - July 15, 2017
352
 
353
  * FIX: Fix issues with cleanup processor causing jobs fail
354
  * FIX: Fix CSS causing UI issues for certain themes
355
 
356
  = 1.14.5 =
357
- *Release Date - June 8, 2017
358
 
359
  * UPDATE: Updates to support WordPress 4.8 release
360
  * UPDATE: Enhancements to cleanup processor and job engine
@@ -364,36 +373,36 @@ Our online documentation and full list of FAQs can be found at [support.wpbackit
364
  * FIX: Fix minor issue with logger
365
 
366
  = 1.14.4 =
367
- *Release Date - April 6,2017
368
 
369
  * FIX: Fix for backup upload error
370
 
371
  = 1.14.3 =
372
- *Release Date - March 16,2017
373
 
374
  * UPDATE: Added new admin notice class
375
  * UPDATE: Added new logging class
376
  * UPDATE: Add support for extremely large databases(500+ SQL files)
377
 
378
  = 1.14.2 =
379
- *Release Date - March 7, 2017
380
 
381
  * FIX: Correct issue with undefined index on admin notices
382
 
383
  = 1.14.1 =
384
- *Release Date - February 16, 2017
385
 
386
  * UPDATE: Updated languages Translations
387
 
388
  = 1.14 =
389
- *Release Date - February 2, 2017
390
 
391
  * UPDATE: Split Premium + Community Edition Code Base
392
  * UPDATE: Issue 173: Added method mysql_escape_mimic to the sql class
393
  * UPDATE: Fix compatibility issue with less php5.5
394
 
395
  = 1.13.6 =
396
- *Release Date - December 22, 2016
397
 
398
  * FEATURE : Add Download logs option to support page.
399
  * UPDATE : Display review button after 2 successful backup or restore
@@ -402,13 +411,13 @@ Our online documentation and full list of FAQs can be found at [support.wpbackit
402
  * FIX : Add backupset file to import processor
403
 
404
  = 1.13.5 =
405
- *Release Date - November 23, 2016
406
 
407
  * FIX : Fix issue with purge when support zips missing
408
  * FIX : Fix data issue with default date 1970-01-01 for mySQl 5.7 strict mode
409
 
410
  = 1.13.4 =
411
- *Release Date - November 17, 2016
412
 
413
  * UPDATE : Add plugin updater
414
  * UPDATE : Update translations
@@ -420,13 +429,13 @@ Our online documentation and full list of FAQs can be found at [support.wpbackit
420
  * FIX : Fix data issue with default date 0000 for mySQl 5.7 strict mode
421
 
422
  = 1.13.3 =
423
- *Release Date - October 14, 2016
424
 
425
  * FIX : Remove reference to phar file causing issues with some customers
426
 
427
 
428
  = 1.13.2 =
429
- *Release Date - October 13, 2016
430
 
431
  * UPDATE : Updates to plugin to make responsive
432
  * UPDATE : Add about page
@@ -434,7 +443,7 @@ Our online documentation and full list of FAQs can be found at [support.wpbackit
434
  * UPDATE : Add task timeout setting
435
 
436
  = 1.13.1 =
437
- *Release Date - September 19, 2016
438
 
439
  * NEW FEATURE : Add max zip size option to settings page
440
  * NEW FEATURE : Add multiple email addresses and enhanced interface
@@ -451,7 +460,7 @@ Our online documentation and full list of FAQs can be found at [support.wpbackit
451
  * FIX : Fix issue with user update in snapshot tables
452
 
453
  = 1.13 =
454
- *Release Date - August 14, 2016
455
 
456
  * UPDATE : WordPress 4.6 support
457
  * UPDATE : Minify style sheets and javascript files
@@ -461,13 +470,13 @@ Our online documentation and full list of FAQs can be found at [support.wpbackit
461
 
462
 
463
  = 1.12.5 =
464
- *Release Date - June 25, 2016
465
 
466
  * FIX : Correct issue with backup tasks not running for customers requiring login on all pages
467
  * FIX : Correct wp_remote_get issue with backup task runner
468
 
469
  = 1.12.4 =
470
- *Release Date - June 14, 2016
471
 
472
  * UPDATE : Migrate database export to use wpdb query utility
473
  * UPDATE : add SQLi detection and error logging
@@ -479,12 +488,12 @@ Our online documentation and full list of FAQs can be found at [support.wpbackit
479
  * FIX : Fix issue with single file backup set settings and manifest
480
 
481
  = 1.12.3 =
482
- *Release Date - April 18, 2016
483
 
484
  * FIX : Fix issue with license activation
485
 
486
  = 1.12.2 =
487
- *Release Date - March 10, 2016
488
 
489
  * NEW FEATURE : Add Single backup file feature
490
  * NEW FEATURE : Add import uploaded backup files
4
  Requires at least: 3.8.0
5
  Requires PHP: 5.2.4
6
  Tested up to: 4.9
7
+ Stable tag: 1.29.0
8
  Author URI: https://www.wpbackitup.com
9
  Donate link: https://www.wpbackitup.com
10
  License: GPLv2 or later
217
 
218
 
219
  == Changelog ==
220
+ = 1.30 =
221
+ *Release Date - October 18, 2018*
222
+
223
+ * UPDATE : Move scheduler UI components into premium plugin
224
+ * UPDATE : Update Notices for Thanksgiving
225
+ * UPDATE : Add Sync Flag to get enabled providers
226
+ * FIX : Fix API missing day property with premium scheduler
227
+ * FIX : Fix SQL close message error on destructor
228
+
229
  = 1.29 =
230
+ *Release Date - August 29, 2018*
231
 
232
  * UPDATE : Update Admin Notices and add Labor Day Promo
233
 
234
  = 1.28 =
235
+ *Release Date - August 13, 2018*
236
 
237
  * FIX : Correct additional issue with php 7.0 array initialization in API
238
 
239
  = 1.27 =
240
+ *Release Date - August 10, 2018*
241
 
242
  * FIX : Correct php 7.0 issue with array initialization in API
243
 
244
  = 1.26 =
245
+ *Release Date - August 9, 2018*
246
 
247
  * UPDATE : Update to check scheduler job frequency
248
  * UPDATE : Update UI to show new cancel button
249
  * UPDATE : Add support for advanced scheduler
250
 
251
  = 1.25 =
252
+ *Release Date - July 19, 2018*
253
 
254
  * Fix : Fix plugin update to product id
255
 
256
  = 1.24 =
257
+ *Release Date - July 19, 2018*
258
 
259
  * UPDATE: Remove Independence Day Promo
260
  * UPDATE: Updates to core to support LITE version of plugin
261
  * Fix : Fix JS error when WPBackItUp-Safe not installed
262
 
263
  = 1.23 =
264
+ *Release Date - July 2, 2018*
265
 
266
  * UPDATE: Add Independence Day Promo
267
  * Fix : Miscellaneous fixes
268
 
269
  = 1.22 =
270
+ *Release Date - June 29, 2018*
271
 
272
  * NEW: Add WPBackItUp Toolbar
273
  * UPDATE: Fix alignment on header in dashboard
274
 
275
  = 1.21 =
276
+ *Release Date - June 5, 2018*
277
 
278
  * UPDATE: Update available backup list to show last 10 backups
279
  * UPDATE: Update backup notification email to use domain instead of blog name
281
  * UPDATE: Migrate premium code to separate repo
282
 
283
  = 1.20 =
284
+ *Release Date - June 1, 2018*
285
 
286
  * FIX: Fix broken links on support tab for multi-site
287
  * UPDATE: Minor updates to ut actions
288
 
289
  = 1.19 =
290
+ *Release Date - May 25, 2018*
291
 
292
  * UPDATE: Minor updates to ut actions
293
 
294
  = 1.18 =
295
+ *Release Date - May 22, 2018*
296
 
297
  * UPDATE: Minor updates to UI scripts
298
 
299
  = 1.17 =
300
+ *Release Date - May 19, 2018*
301
 
302
  * UPDATE: Fix issue with ut-API
303
 
304
  = 1.16 =
305
+ *Release Date - May 18, 2018*
306
 
307
  * UPDATE: Updates for WordPress version 4.9.6
308
  * UPDATE: Updates to usage tracking
309
 
310
  = 1.15.7 =
311
+ *Release Date - May 4, 2018*
312
 
313
  * UPDATE: Updates to get_open_items_by_group_last_day to include items that are queued and open
314
  * UPDATE: Updates to fire WPBackItUp Safe Log Push Event
315
 
316
  = 1.15.6 =
317
+ *Release Date - March 1, 2018*
318
 
319
  * FIX: Fix array initialization issue for php 7.1 in task and job meta setters
320
  * UPDATE: Updates to remove api log messages
321
 
322
  = 1.15.5 =
323
+ *Release Date - February, 9, 2018*
324
 
325
  * UPDATE: Updates to support WPBackItUp Safe Beta Launch
326
  * UPDATE: Updates to WordPress 4.9.4
327
 
328
  = 1.15.4 =
329
+ *Release Date - January 3, 2018*
330
 
331
  * FIX : Fix security issue with delete log
332
  * UPDATE: Admin notice updates
333
  * UPDATE: Enhancements to support WPBackItUp Safe cloud storage
334
 
335
  = 1.15.3 =
336
+ *Release Date - November 16, 2017*
337
 
338
  * FIX: Fix minor issue with admin notice
339
 
340
  = 1.15.1 =
341
+ *Release Date - November 15, 2017*
342
 
343
  * UPDATE: Enhancements to support WordPress Version 4.9
344
  * UPDATE: Enhancements to support WPBackItUp Safe
345
  * UPDATE: Added logging to track infinite loop in plugin validation
346
 
347
  = 1.15 =
348
+ *Release Date - September 29, 2017*
349
 
350
  * UPDATE: Enhancements to settings user interface
351
  * UPDATE: Enhancements to backup engine to support Cloud Storage
352
  * UPDATE: Extend maximum zip file size to 2GB
353
 
354
  = 1.14.7 =
355
+ *Release Date - July 19, 2017*
356
 
357
  * FIX: Fix issues with CSS filter on PHP 5.2
358
 
359
  = 1.14.6 =
360
+ *Release Date - July 15, 2017*
361
 
362
  * FIX: Fix issues with cleanup processor causing jobs fail
363
  * FIX: Fix CSS causing UI issues for certain themes
364
 
365
  = 1.14.5 =
366
+ *Release Date - June 8, 2017*
367
 
368
  * UPDATE: Updates to support WordPress 4.8 release
369
  * UPDATE: Enhancements to cleanup processor and job engine
373
  * FIX: Fix minor issue with logger
374
 
375
  = 1.14.4 =
376
+ *Release Date - April 6,2017*
377
 
378
  * FIX: Fix for backup upload error
379
 
380
  = 1.14.3 =
381
+ *Release Date - March 16,2017*
382
 
383
  * UPDATE: Added new admin notice class
384
  * UPDATE: Added new logging class
385
  * UPDATE: Add support for extremely large databases(500+ SQL files)
386
 
387
  = 1.14.2 =
388
+ *Release Date - March 7, 2017*
389
 
390
  * FIX: Correct issue with undefined index on admin notices
391
 
392
  = 1.14.1 =
393
+ *Release Date - February 16, 2017*
394
 
395
  * UPDATE: Updated languages Translations
396
 
397
  = 1.14 =
398
+ *Release Date - February 2, 2017*
399
 
400
  * UPDATE: Split Premium + Community Edition Code Base
401
  * UPDATE: Issue 173: Added method mysql_escape_mimic to the sql class
402
  * UPDATE: Fix compatibility issue with less php5.5
403
 
404
  = 1.13.6 =
405
+ *Release Date - December 22, 2016*
406
 
407
  * FEATURE : Add Download logs option to support page.
408
  * UPDATE : Display review button after 2 successful backup or restore
411
  * FIX : Add backupset file to import processor
412
 
413
  = 1.13.5 =
414
+ *Release Date - November 23, 2016*
415
 
416
  * FIX : Fix issue with purge when support zips missing
417
  * FIX : Fix data issue with default date 1970-01-01 for mySQl 5.7 strict mode
418
 
419
  = 1.13.4 =
420
+ *Release Date - November 17, 2016*
421
 
422
  * UPDATE : Add plugin updater
423
  * UPDATE : Update translations
429
  * FIX : Fix data issue with default date 0000 for mySQl 5.7 strict mode
430
 
431
  = 1.13.3 =
432
+ *Release Date - October 14, 2016*
433
 
434
  * FIX : Remove reference to phar file causing issues with some customers
435
 
436
 
437
  = 1.13.2 =
438
+ *Release Date - October 13, 2016*
439
 
440
  * UPDATE : Updates to plugin to make responsive
441
  * UPDATE : Add about page
443
  * UPDATE : Add task timeout setting
444
 
445
  = 1.13.1 =
446
+ *Release Date - September 19, 2016*
447
 
448
  * NEW FEATURE : Add max zip size option to settings page
449
  * NEW FEATURE : Add multiple email addresses and enhanced interface
460
  * FIX : Fix issue with user update in snapshot tables
461
 
462
  = 1.13 =
463
+ *Release Date - August 14, 2016*
464
 
465
  * UPDATE : WordPress 4.6 support
466
  * UPDATE : Minify style sheets and javascript files
470
 
471
 
472
  = 1.12.5 =
473
+ *Release Date - June 25, 2016*
474
 
475
  * FIX : Correct issue with backup tasks not running for customers requiring login on all pages
476
  * FIX : Correct wp_remote_get issue with backup task runner
477
 
478
  = 1.12.4 =
479
+ *Release Date - June 14, 2016*
480
 
481
  * UPDATE : Migrate database export to use wpdb query utility
482
  * UPDATE : add SQLi detection and error logging
488
  * FIX : Fix issue with single file backup set settings and manifest
489
 
490
  = 1.12.3 =
491
+ *Release Date - April 18, 2016*
492
 
493
  * FIX : Fix issue with license activation
494
 
495
  = 1.12.2 =
496
+ *Release Date - March 10, 2016*
497
 
498
  * NEW FEATURE : Add Single backup file feature
499
  * NEW FEATURE : Add import uploaded backup files
views/backup.php CHANGED
@@ -663,12 +663,12 @@ if (!$backup_folder_exists) {
663
  <div class="monthly-option" v-if="frequency=='month'">
664
  <div class="sform-element">
665
  <p><?php _e('Repeat On','wp-backitup') ?></p>
666
- <el-select v-model="monthlyValue" placeholder="Select">
667
  <el-option
668
  v-for="item in monthlyStrings"
669
  :key="item.value"
670
  :label="item.label"
671
- :value="item.value">
672
  </el-option>
673
  </el-select>
674
  </div>
@@ -722,23 +722,19 @@ if (!$backup_folder_exists) {
722
 
723
  <td data-th="<?php _e('Status', 'wp-backitup') ?>">{{ status }}</td>
724
 
725
- <send-cloud v-bind:visible="cloudVisible"
726
- v-bind:kloud-status="cstatus"
727
- >
728
  </send-cloud>
729
-
730
  <td>
731
  <a href="#" title="Delete Backup" v-bind:data-id="jobId" class="deleteRow" v-bind:id="'deleteRow'+row"><i class="fa fa-trash-o fa-2x"></i></a>
732
  </td>
733
  </tr>
734
  </script>
735
 
736
-
737
-
738
  <!--Vue Send to cloud-->
739
  <script type="text/x-template" id="send-to-cloud">
740
  <td v-if="visible">
741
- <?php if (true==$safe_sync_on) : ?>
742
  <span v-if="kloudStatus == 'uploaded' " class="fa-stack" title="<?php _e('Backup safely stored in cloud', 'wp-backitup'); ?>" >
743
  <a href="#" @click="openModal('modal'+ jobId)">
744
  <i class="fa fa fa-cloud fa-stack-2x" style="color:dodgerblue;"></i>
@@ -778,8 +774,6 @@ if (!$backup_folder_exists) {
778
  </div>
779
  </ui-modal>
780
  </div>
781
-
782
- <?php endif ?>
783
  </td>
784
  <td v-else>&nbsp;</td>
785
  </script>
663
  <div class="monthly-option" v-if="frequency=='month'">
664
  <div class="sform-element">
665
  <p><?php _e('Repeat On','wp-backitup') ?></p>
666
+ <el-select v-model="monthlyValue" placeholder="Select" value-key="label">
667
  <el-option
668
  v-for="item in monthlyStrings"
669
  :key="item.value"
670
  :label="item.label"
671
+ :value="item">
672
  </el-option>
673
  </el-select>
674
  </div>
722
 
723
  <td data-th="<?php _e('Status', 'wp-backitup') ?>">{{ status }}</td>
724
 
725
+ <?php if (true==$safe_sync_on) : ?>
726
+ <send-cloud v-bind:visible="cloudVisible" v-bind:kloud-status="cstatus">
 
727
  </send-cloud>
728
+ <?php endif ?>
729
  <td>
730
  <a href="#" title="Delete Backup" v-bind:data-id="jobId" class="deleteRow" v-bind:id="'deleteRow'+row"><i class="fa fa-trash-o fa-2x"></i></a>
731
  </td>
732
  </tr>
733
  </script>
734
 
 
 
735
  <!--Vue Send to cloud-->
736
  <script type="text/x-template" id="send-to-cloud">
737
  <td v-if="visible">
 
738
  <span v-if="kloudStatus == 'uploaded' " class="fa-stack" title="<?php _e('Backup safely stored in cloud', 'wp-backitup'); ?>" >
739
  <a href="#" @click="openModal('modal'+ jobId)">
740
  <i class="fa fa fa-cloud fa-stack-2x" style="color:dodgerblue;"></i>
774
  </div>
775
  </ui-modal>
776
  </div>
 
 
777
  </td>
778
  <td v-else>&nbsp;</td>
779
  </script>
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.29.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', 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
 
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.30.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', 30);
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