Skip to content

Commit 6454aee

Browse files
HonemoKhadreal
andauthored
5.6.2 Changelog rephrase (#234)
* Update WP version * Release 5.6.2 * Add changelog for 5.6.2 and stable tag * Update changelog for version 5.6.2 --------- Co-authored-by: Khadreal <opeyemi.khadri@gmail.com>
1 parent b16851b commit 6454aee

34 files changed

+675
-309
lines changed

assets/css/backwpup-admin.css

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ video {
554554
display: none;
555555
}
556556

557-
[type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select {
557+
input:where([type='text']),input:where(:not([type])),input:where([type='email']),input:where([type='url']),input:where([type='password']),input:where([type='number']),input:where([type='date']),input:where([type='datetime-local']),input:where([type='month']),input:where([type='search']),input:where([type='tel']),input:where([type='time']),input:where([type='week']),select:where([multiple]),textarea,select {
558558
-webkit-appearance: none;
559559
-moz-appearance: none;
560560
appearance: none;
@@ -571,7 +571,7 @@ video {
571571
--tw-shadow: 0 0 #0000;
572572
}
573573

574-
[type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus {
574+
input:where([type='text']):focus, input:where(:not([type])):focus, input:where([type='email']):focus, input:where([type='url']):focus, input:where([type='password']):focus, input:where([type='number']):focus, input:where([type='date']):focus, input:where([type='datetime-local']):focus, input:where([type='month']):focus, input:where([type='search']):focus, input:where([type='tel']):focus, input:where([type='time']):focus, input:where([type='week']):focus, select:where([multiple]):focus, textarea:focus, select:focus {
575575
outline: 2px solid transparent;
576576
outline-offset: 2px;
577577
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
@@ -622,7 +622,7 @@ select {
622622
print-color-adjust: exact;
623623
}
624624

625-
[multiple],[size]:where(select:not([size="1"])) {
625+
select:where([multiple]),select:where([size]:not([size="1"])) {
626626
background-image: initial;
627627
background-position: initial;
628628
background-repeat: unset;
@@ -632,7 +632,7 @@ select {
632632
print-color-adjust: unset;
633633
}
634634

635-
[type='checkbox'],[type='radio'] {
635+
input:where([type='checkbox']),input:where([type='radio']) {
636636
-webkit-appearance: none;
637637
-moz-appearance: none;
638638
appearance: none;
@@ -655,15 +655,15 @@ select {
655655
--tw-shadow: 0 0 #0000;
656656
}
657657

658-
[type='checkbox'] {
658+
input:where([type='checkbox']) {
659659
border-radius: 0px;
660660
}
661661

662-
[type='radio'] {
662+
input:where([type='radio']) {
663663
border-radius: 100%;
664664
}
665665

666-
[type='checkbox']:focus,[type='radio']:focus {
666+
input:where([type='checkbox']):focus,input:where([type='radio']):focus {
667667
outline: 2px solid transparent;
668668
outline-offset: 2px;
669669
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
@@ -675,44 +675,44 @@ select {
675675
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
676676
}
677677

678-
[type='checkbox']:checked,[type='radio']:checked {
678+
input:where([type='checkbox']):checked,input:where([type='radio']):checked {
679679
border-color: transparent;
680680
background-color: currentColor;
681681
background-size: 100% 100%;
682682
background-position: center;
683683
background-repeat: no-repeat;
684684
}
685685

686-
[type='checkbox']:checked {
686+
input:where([type='checkbox']):checked {
687687
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
688688
}
689689

690690
@media (forced-colors: active) {
691-
[type='checkbox']:checked {
691+
input:where([type='checkbox']):checked {
692692
-webkit-appearance: auto;
693693
-moz-appearance: auto;
694694
appearance: auto;
695695
}
696696
}
697697

698-
[type='radio']:checked {
698+
input:where([type='radio']):checked {
699699
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
700700
}
701701

702702
@media (forced-colors: active) {
703-
[type='radio']:checked {
703+
input:where([type='radio']):checked {
704704
-webkit-appearance: auto;
705705
-moz-appearance: auto;
706706
appearance: auto;
707707
}
708708
}
709709

710-
[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus {
710+
input:where([type='checkbox']):checked:hover,input:where([type='checkbox']):checked:focus,input:where([type='radio']):checked:hover,input:where([type='radio']):checked:focus {
711711
border-color: transparent;
712712
background-color: currentColor;
713713
}
714714

715-
[type='checkbox']:indeterminate {
715+
input:where([type='checkbox']):indeterminate {
716716
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
717717
border-color: transparent;
718718
background-color: currentColor;
@@ -722,19 +722,19 @@ select {
722722
}
723723

724724
@media (forced-colors: active) {
725-
[type='checkbox']:indeterminate {
725+
input:where([type='checkbox']):indeterminate {
726726
-webkit-appearance: auto;
727727
-moz-appearance: auto;
728728
appearance: auto;
729729
}
730730
}
731731

732-
[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus {
732+
input:where([type='checkbox']):indeterminate:hover,input:where([type='checkbox']):indeterminate:focus {
733733
border-color: transparent;
734734
background-color: currentColor;
735735
}
736736

737-
[type='file'] {
737+
input:where([type='file']) {
738738
background: unset;
739739
border-color: inherit;
740740
border-width: 0;
@@ -744,7 +744,7 @@ select {
744744
line-height: inherit;
745745
}
746746

747-
[type='file']:focus {
747+
input:where([type='file']):focus {
748748
outline: 1px solid ButtonText;
749749
outline: 1px auto -webkit-focus-ring-color;
750750
}

assets/js/backwpup-admin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2155,7 +2155,7 @@ jQuery(document).ready(function ($) {
21552155
if ( ! isGenerateJsIncluded() ) {
21562156
let first_job_id = $('#backwpup_first_backup_job_id').val();
21572157
requestWPApi(backwpupApi.startbackup, {first_backup: 1, job_id : first_job_id}, function(response) {
2158-
if (200 === response.status) {
2158+
if (201 === response.status || 200 === response.status) {
21592159
setTimeout(function() {
21602160
window.location.reload();
21612161
}, 500);

assets/js/backwpup-admin.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backwpup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: WordPress Backup Plugin
66
* Author: BackWPup – WordPress Backup & Restore Plugin
77
* Author URI: https://backwpup.com
8-
* Version: 5.6.1
8+
* Version: 5.6.2
99
* Requires at least: 4.9
1010
* Requires PHP: 7.4
1111
* Text Domain: backwpup

changelog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
== Changelog ==
22

3+
= 5.6.2 =
4+
Release date: January 07, 2026
5+
6+
* Fix: Improved validation for the “Max backups to retain” setting to prevent incorrect values.
7+
* Pro enhancement: Improved license management and added an in-plugin notification to alert users about license status changes.
8+
39
= 5.6.1 =
410
Release date: December 11, 2025
511

components/form/text.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
?>
4343
<label class="<?php echo BackWPupHelpers::clsx($container_classes, $container_contextual_classes); ?>">
44-
<input name="<?=esc_attr($name)?>" type="<?php echo esc_attr($type); ?>" <?php echo $id; ?> class="<?php echo BackWPupHelpers::clsx("input-base text-lg w-full", $trigger); ?>" placeholder="" <?php if ($required) : ?>required<?php endif; ?> value="<?php echo esc_attr($value); ?>" <?php if (isset($min) && $type === "number") : ?>min="<?php echo esc_attr($min); ?>" <?php endif; ?> <?php if (isset($max) && $type === "number") : ?>max="<?php echo esc_attr($max); ?>" <?php endif; ?><?php if (isset($maxlength)) : ?> maxlength="<?php echo esc_attr($maxlength); ?>" <?php endif; ?>>
44+
<input name="<?=esc_attr($name)?>" type="<?php echo esc_attr($type); ?>" <?php echo $id; ?> class="<?php echo BackWPupHelpers::clsx("input-base text-lg w-full", $trigger); ?>" placeholder="" <?php if ($required) : ?>required<?php endif; ?> value="<?php echo esc_attr($value); ?>" <?php if (isset($min) && $type === "number") : ?>min="<?php echo esc_attr($min); ?>" <?php endif; ?> <?php if (isset($max) && $type === "number") : ?>max="<?php echo esc_attr($max); ?>" <?php endif; ?><?php if (isset($step) && $type === "number") : ?> step="<?php echo esc_attr($step); ?>" <?php endif; ?><?php if (isset($maxlength)) : ?> maxlength="<?php echo esc_attr($maxlength); ?>" <?php endif; ?>>
4545
<p class="<?php echo $text_classes; ?> <?php echo $text_contextual_classes; ?>">
4646
<?php echo $label; ?>
4747
<?php isset($tooltip) && BackWPupHelpers::component("tooltip", ["content" => $tooltip, "icon_size" => "small", "position" => $tooltip_pos]); ?>

inc/class-destination-dropbox.php

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@
77
*/
88
class BackWPup_Destination_Dropbox extends BackWPup_Destinations
99
{
10-
/**
10+
/**
11+
* Service name
12+
*
13+
* @var string
14+
*/
15+
private const SERVICE_NAME = 'Dropbox';
16+
17+
/**
1118
* Dropbox.
1219
*
1320
* Instance of Dropbox API
@@ -121,7 +128,7 @@ public function edit_form_post_save( $jobid ): void {
121128
BackWPup_Option::update(
122129
$id,
123130
'dropboxmaxbackups',
124-
! empty( $_POST['dropboxmaxbackups'] ) ? absint( $_POST['dropboxmaxbackups'] ) : 0
131+
isset( $_POST['dropboxmaxbackups'] ) && is_numeric( $_POST['dropboxmaxbackups'] ) ? absint( $_POST['dropboxmaxbackups'] ) : $this->option_defaults()['dropboxmaxbackups']
125132
);
126133
BackWPup_Option::update( $id, 'dropboxdir', $_POST['dropboxdir'] );
127134
}
@@ -167,16 +174,6 @@ public function file_delete(string $jobdest, string $backupfile): void
167174
do_action( 'backwpup_update_backup_history', $key, $files );
168175
}
169176

170-
/**
171-
* {@inheritdoc}
172-
*/
173-
public function file_get_list(string $jobdest): array
174-
{
175-
$list = (array) get_site_transient('backwpup_' . strtolower($jobdest));
176-
177-
return array_filter($list);
178-
}
179-
180177
/**
181178
* File Update List.
182179
*
@@ -413,4 +410,11 @@ protected function get_dropbox($job): BackWPup_Destination_Dropbox_API
413410

414411
return $this->dropbox;
415412
}
413+
414+
/**
415+
* Get service name
416+
*/
417+
public function get_service_name(): string {
418+
return self::SERVICE_NAME;
419+
}
416420
}

inc/class-destination-email.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,4 +389,11 @@ private function getPhpMailer()
389389

390390
return $phpmailer;
391391
}
392+
393+
/**
394+
* Get service name
395+
*/
396+
public function get_service_name(): string {
397+
return 'Email';
398+
}
392399
}

inc/class-destination-folder.php

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,22 @@
33
/**
44
* Class BackWPup_Destination_Folder.
55
*/
6-
class BackWPup_Destination_Folder extends BackWPup_Destinations
7-
{
8-
public function option_defaults(): array
9-
{
10-
$backups_dir = self::getDefaultBackupsDirectory();
6+
class BackWPup_Destination_Folder extends BackWPup_Destinations {
7+
8+
/**
9+
* Service name
10+
*
11+
* @var string
12+
*/
13+
private const SERVICE_NAME = 'Folder';
14+
15+
/**
16+
* Option defaults
17+
*
18+
* @return array
19+
*/
20+
public function option_defaults(): array {
21+
$backups_dir = self::getDefaultBackupsDirectory();
1122

1223
return ['maxbackups' => 15, 'backupdir' => $backups_dir, 'backupsyncnodelete' => true];
1324
}
@@ -27,8 +38,8 @@ public function edit_form_post_save( $jobid ): void {
2738
$backup_dir = self::getDefaultBackupsDirectory();
2839
}
2940

30-
$max_backups = isset( $_POST['maxbackups'] ) ? absint( $_POST['maxbackups'] ) : 0; // phpcs:ignore WordPress.Security.NonceVerification.Missing
31-
$jobids = (array) $jobid;
41+
$max_backups = isset( $_POST['maxbackups'] ) && is_numeric( $_POST['maxbackups'] ) ? absint( $_POST['maxbackups'] ) : $this->option_defaults()['maxbackups']; // phpcs:ignore WordPress.Security.NonceVerification.Missing
42+
$jobids = (array) $jobid;
3243
foreach ( $jobids as $jobid ) {
3344
BackWPup_Option::update( $jobid, 'backupdir', $backup_dir );
3445
BackWPup_Option::update( $jobid, 'maxbackups', $max_backups );
@@ -243,4 +254,11 @@ private static function getDefaultBackupsDirectory()
243254

244255
return str_replace($content_path, '', $backups_dir);
245256
}
257+
258+
/**
259+
* Get service name
260+
*/
261+
public function get_service_name(): string {
262+
return self::SERVICE_NAME;
263+
}
246264
}

inc/class-destination-ftp.php

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
<?php
22

3-
class BackWPup_Destination_Ftp extends BackWPup_Destinations
4-
{
5-
private const FILTER_USEPASVADDRESS = 'backwpup_ftp_use_passive_address';
3+
class BackWPup_Destination_Ftp extends BackWPup_Destinations {
4+
5+
/**
6+
* Service name
7+
*
8+
* @var string
9+
*/
10+
private const SERVICE_NAME = 'FTP';
11+
12+
private const FILTER_USEPASVADDRESS = 'backwpup_ftp_use_passive_address';
613

714
/**
815
* FTP Connection Resource.
@@ -63,7 +70,7 @@ public function edit_form_post_save( $id ): void {
6370
BackWPup_Option::update(
6471
$id,
6572
'ftpmaxbackups',
66-
! empty( $_POST['ftpmaxbackups'] ) ? absint( $_POST['ftpmaxbackups'] ) : 0
73+
isset( $_POST['ftpmaxbackups'] ) && is_numeric( $_POST['ftpmaxbackups'] ) ? absint( $_POST['ftpmaxbackups'] ) : $this->option_defaults()['ftpmaxbackups']
6774
);
6875
if ( function_exists( 'ftp_ssl_connect' ) ) {
6976
BackWPup_Option::update( $id, 'ftpssl', ! empty( $_POST['ftpssl'] ) );
@@ -113,16 +120,6 @@ public function file_delete(string $jobdest, string $backupfile): void
113120
set_site_transient('backwpup_' . strtolower($jobdest), $files, YEAR_IN_SECONDS);
114121
}
115122

116-
/**
117-
* {@inheritdoc}
118-
*/
119-
public function file_get_list(string $jobdest): array
120-
{
121-
$list = (array) get_site_transient('backwpup_' . strtolower($jobdest));
122-
123-
return array_filter($list);
124-
}
125-
126123
/**
127124
* File Update List.
128125
*
@@ -686,4 +683,11 @@ private function create_dir($stream, string $dir, BackWPup_Job $job_object): boo
686683

687684
return $response;
688685
}
686+
687+
/**
688+
* Get service name
689+
*/
690+
public function get_service_name(): string {
691+
return self::SERVICE_NAME;
692+
}
689693
}

0 commit comments

Comments
 (0)