Plugin Directory

Changeset 3284895


Ignore:
Timestamp:
04/30/2025 01:12:55 PM (10 months ago)
Author:
backwpup
Message:

Update to version 5.2.1 from GitHub

Location:
backwpup
Files:
2 added
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • backwpup/tags/5.2.1/backwpup.php

    r3284139 r3284895  
    66 * Author: BackWPup – WordPress Backup & Restore Plugin
    77 * Author URI: https://backwpup.com
    8  * Version: 5.2.0
     8 * Version: 5.2.1
    99 * Requires at least: 4.9
    1010 * Requires PHP: 7.4
     
    5959
    6060            require_once __DIR__ . '/inc/functions.php';
     61            require_once __DIR__ . '/src/compat.php';
    6162
    6263            $file = untrailingslashit( self::get_plugin_data( 'plugindir' ) )
  • backwpup/tags/5.2.1/changelog.txt

    r3284139 r3284895  
    11== Changelog ==
     2= 5.2.1 =
     3Release date: April 30, 2025
     4
     5* Bugfix: Fixed fatal error caused by cal_days_in_month() function on 5.2 for unsupported servers.
     6
    27= 5.2.0 =
    38Release date: April 29, 2025
  • backwpup/tags/5.2.1/inc/functions.php

    r3097066 r3284895  
    235235    return $escaped_url;
    236236}
     237
     238/**
     239 * Compatibility code for cal_days_in_month.
     240 *
     241 * @param int $month Month.
     242 * @param int $year Year.
     243 *
     244 * @return int
     245 */
     246function backwpup_cal_days_in_month( $month, $year ) {
     247    $month = (int) $month;
     248    $year  = (int) $year;
     249
     250    // Array of the number of days in each month for a non-leap year.
     251    $days_in_months = [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ];
     252
     253    // Check if the month is February and if the year is a leap year.
     254    if ( 2 === $month && ( ( 0 === ( $year % 4 ) && 0 !== ( $year % 100 ) ) || ( 0 === $year % 400 ) ) ) {
     255        return 29; // February in a leap year has 29 days.
     256    }
     257
     258    // Return the number of days for the given month.
     259    return $days_in_months[ $month - 1 ];
     260}
  • backwpup/tags/5.2.1/languages/backwpup.pot

    r3284139 r3284895  
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"Content-Transfer-Encoding: 8bit\n"
    9 "POT-Creation-Date: 2025-04-29 13:13+0000\n"
     9"POT-Creation-Date: 2025-04-30 12:53+0000\n"
    1010"X-Poedit-Basepath: ..\n"
    1111"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
     
    3535msgstr ""
    3636
    37 #: backwpup.php:388, inc/class-page-backups.php:223
     37#: backwpup.php:389, inc/class-page-backups.php:223
    3838msgid "Folder"
    3939msgstr ""
    4040
    41 #: backwpup.php:389
     41#: backwpup.php:390
    4242msgid "Backup to Folder"
    4343msgstr ""
    4444
    45 #: backwpup.php:403
     45#: backwpup.php:404
    4646msgid "Email"
    4747msgstr ""
    4848
    49 #: backwpup.php:404
     49#: backwpup.php:405
    5050msgid "Backup sent via email"
    5151msgstr ""
    5252
    53 #: backwpup.php:418
     53#: backwpup.php:419
    5454msgid "FTP"
    5555msgstr ""
    5656
    57 #: backwpup.php:419
     57#: backwpup.php:420
    5858msgid "Backup to FTP"
    5959msgstr ""
    6060
    61 #: backwpup.php:433, inc/class-destination-dropbox.php:471
     61#: backwpup.php:434, inc/class-destination-dropbox.php:471
    6262msgid "Dropbox"
    6363msgstr ""
    6464
    65 #: backwpup.php:434, inc/class-page-about.php:504
     65#: backwpup.php:435, inc/class-page-about.php:504
    6666msgid "Backup to Dropbox"
    6767msgstr ""
    6868
    69 #: backwpup.php:448, inc/class-destination-s3.php:42, parts/sidebar/storage-S3.php:51
     69#: backwpup.php:449, inc/class-destination-s3.php:42, parts/sidebar/storage-S3.php:51
    7070msgid "S3 Service"
    7171msgstr ""
    7272
    73 #: backwpup.php:449
     73#: backwpup.php:450
    7474msgid "Backup to an S3 Service"
    7575msgstr ""
    7676
    77 #: backwpup.php:463
     77#: backwpup.php:464
    7878msgid "MS Azure"
    7979msgstr ""
    8080
    81 #: backwpup.php:464
     81#: backwpup.php:465
    8282msgid "Backup to Microsoft Azure (Blob)"
    8383msgstr ""
    8484
    85 #: backwpup.php:478
     85#: backwpup.php:479
    8686msgid "RSC"
    8787msgstr ""
    8888
    89 #: backwpup.php:479, inc/class-page-about.php:509
     89#: backwpup.php:480, inc/class-page-about.php:509
    9090msgid "Backup to Rackspace Cloud Files"
    9191msgstr ""
    9292
    93 #: backwpup.php:493
     93#: backwpup.php:494
    9494msgid "SugarSync"
    9595msgstr ""
    9696
    97 #: backwpup.php:494, inc/class-page-about.php:524
     97#: backwpup.php:495, inc/class-page-about.php:524
    9898msgid "Backup to SugarSync"
    9999msgstr ""
    100100
    101 #: backwpup.php:522
     101#: backwpup.php:523
    102102msgid "PHP Version %1$s is to low, you need Version %2$s or above."
    103103msgstr ""
    104104
    105 #: backwpup.php:536
     105#: backwpup.php:537
    106106msgid "Missing function \"%s\"."
    107107msgstr ""
    108108
    109 #: backwpup.php:551
     109#: backwpup.php:552
    110110msgid "Missing class \"%s\"."
    111111msgstr ""
    112112
    113 #: backwpup.php:637
     113#: backwpup.php:638
    114114msgid "BackWPup requires PHP version %1$s with spl extension or greater and WordPress %2$s or greater."
    115115msgstr ""
  • backwpup/tags/5.2.1/readme.txt

    r3284139 r3284895  
    66Tested up to: 6.8
    77Requires PHP: 7.4
    8 Stable tag: 5.2.0
     8Stable tag: 5.2.1
    99License: GPLv2+
    1010
     
    190190
    191191== Changelog ==
     192
     193= 5.2.1 =
     194Release date: April 30, 2025
     195
     196* Bugfix: Fixed fatal error caused by cal_days_in_month() function on 5.2 for unsupported servers.
    192197
    193198= 5.2.0 =
  • backwpup/tags/5.2.1/vendor/composer/installed.php

    r3284139 r3284895  
    22    'root' => array(
    33        'name' => 'inpsyde/backwpup-pro',
    4         'pretty_version' => '5.2.0',
    5         'version' => '5.2.0.0',
    6         'reference' => '24fa7ddc3a8a0d72683a8fdedc55a492c56ac532',
     4        'pretty_version' => '5.2.1',
     5        'version' => '5.2.1.0',
     6        'reference' => '5f22f5b2473dd0da1733bf536eb9b3f7cf04cd14',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    225225        ),
    226226        'inpsyde/backwpup-pro' => array(
    227             'pretty_version' => '5.2.0',
    228             'version' => '5.2.0.0',
    229             'reference' => '24fa7ddc3a8a0d72683a8fdedc55a492c56ac532',
     227            'pretty_version' => '5.2.1',
     228            'version' => '5.2.1.0',
     229            'reference' => '5f22f5b2473dd0da1733bf536eb9b3f7cf04cd14',
    230230            'type' => 'wordpress-plugin',
    231231            'install_path' => __DIR__ . '/../../',
  • backwpup/trunk/backwpup.php

    r3284139 r3284895  
    66 * Author: BackWPup – WordPress Backup & Restore Plugin
    77 * Author URI: https://backwpup.com
    8  * Version: 5.2.0
     8 * Version: 5.2.1
    99 * Requires at least: 4.9
    1010 * Requires PHP: 7.4
     
    5959
    6060            require_once __DIR__ . '/inc/functions.php';
     61            require_once __DIR__ . '/src/compat.php';
    6162
    6263            $file = untrailingslashit( self::get_plugin_data( 'plugindir' ) )
  • backwpup/trunk/changelog.txt

    r3284139 r3284895  
    11== Changelog ==
     2= 5.2.1 =
     3Release date: April 30, 2025
     4
     5* Bugfix: Fixed fatal error caused by cal_days_in_month() function on 5.2 for unsupported servers.
     6
    27= 5.2.0 =
    38Release date: April 29, 2025
  • backwpup/trunk/inc/functions.php

    r3097066 r3284895  
    235235    return $escaped_url;
    236236}
     237
     238/**
     239 * Compatibility code for cal_days_in_month.
     240 *
     241 * @param int $month Month.
     242 * @param int $year Year.
     243 *
     244 * @return int
     245 */
     246function backwpup_cal_days_in_month( $month, $year ) {
     247    $month = (int) $month;
     248    $year  = (int) $year;
     249
     250    // Array of the number of days in each month for a non-leap year.
     251    $days_in_months = [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ];
     252
     253    // Check if the month is February and if the year is a leap year.
     254    if ( 2 === $month && ( ( 0 === ( $year % 4 ) && 0 !== ( $year % 100 ) ) || ( 0 === $year % 400 ) ) ) {
     255        return 29; // February in a leap year has 29 days.
     256    }
     257
     258    // Return the number of days for the given month.
     259    return $days_in_months[ $month - 1 ];
     260}
  • backwpup/trunk/languages/backwpup.pot

    r3284139 r3284895  
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"Content-Transfer-Encoding: 8bit\n"
    9 "POT-Creation-Date: 2025-04-29 13:13+0000\n"
     9"POT-Creation-Date: 2025-04-30 12:53+0000\n"
    1010"X-Poedit-Basepath: ..\n"
    1111"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
     
    3535msgstr ""
    3636
    37 #: backwpup.php:388, inc/class-page-backups.php:223
     37#: backwpup.php:389, inc/class-page-backups.php:223
    3838msgid "Folder"
    3939msgstr ""
    4040
    41 #: backwpup.php:389
     41#: backwpup.php:390
    4242msgid "Backup to Folder"
    4343msgstr ""
    4444
    45 #: backwpup.php:403
     45#: backwpup.php:404
    4646msgid "Email"
    4747msgstr ""
    4848
    49 #: backwpup.php:404
     49#: backwpup.php:405
    5050msgid "Backup sent via email"
    5151msgstr ""
    5252
    53 #: backwpup.php:418
     53#: backwpup.php:419
    5454msgid "FTP"
    5555msgstr ""
    5656
    57 #: backwpup.php:419
     57#: backwpup.php:420
    5858msgid "Backup to FTP"
    5959msgstr ""
    6060
    61 #: backwpup.php:433, inc/class-destination-dropbox.php:471
     61#: backwpup.php:434, inc/class-destination-dropbox.php:471
    6262msgid "Dropbox"
    6363msgstr ""
    6464
    65 #: backwpup.php:434, inc/class-page-about.php:504
     65#: backwpup.php:435, inc/class-page-about.php:504
    6666msgid "Backup to Dropbox"
    6767msgstr ""
    6868
    69 #: backwpup.php:448, inc/class-destination-s3.php:42, parts/sidebar/storage-S3.php:51
     69#: backwpup.php:449, inc/class-destination-s3.php:42, parts/sidebar/storage-S3.php:51
    7070msgid "S3 Service"
    7171msgstr ""
    7272
    73 #: backwpup.php:449
     73#: backwpup.php:450
    7474msgid "Backup to an S3 Service"
    7575msgstr ""
    7676
    77 #: backwpup.php:463
     77#: backwpup.php:464
    7878msgid "MS Azure"
    7979msgstr ""
    8080
    81 #: backwpup.php:464
     81#: backwpup.php:465
    8282msgid "Backup to Microsoft Azure (Blob)"
    8383msgstr ""
    8484
    85 #: backwpup.php:478
     85#: backwpup.php:479
    8686msgid "RSC"
    8787msgstr ""
    8888
    89 #: backwpup.php:479, inc/class-page-about.php:509
     89#: backwpup.php:480, inc/class-page-about.php:509
    9090msgid "Backup to Rackspace Cloud Files"
    9191msgstr ""
    9292
    93 #: backwpup.php:493
     93#: backwpup.php:494
    9494msgid "SugarSync"
    9595msgstr ""
    9696
    97 #: backwpup.php:494, inc/class-page-about.php:524
     97#: backwpup.php:495, inc/class-page-about.php:524
    9898msgid "Backup to SugarSync"
    9999msgstr ""
    100100
    101 #: backwpup.php:522
     101#: backwpup.php:523
    102102msgid "PHP Version %1$s is to low, you need Version %2$s or above."
    103103msgstr ""
    104104
    105 #: backwpup.php:536
     105#: backwpup.php:537
    106106msgid "Missing function \"%s\"."
    107107msgstr ""
    108108
    109 #: backwpup.php:551
     109#: backwpup.php:552
    110110msgid "Missing class \"%s\"."
    111111msgstr ""
    112112
    113 #: backwpup.php:637
     113#: backwpup.php:638
    114114msgid "BackWPup requires PHP version %1$s with spl extension or greater and WordPress %2$s or greater."
    115115msgstr ""
  • backwpup/trunk/readme.txt

    r3284139 r3284895  
    66Tested up to: 6.8
    77Requires PHP: 7.4
    8 Stable tag: 5.2.0
     8Stable tag: 5.2.1
    99License: GPLv2+
    1010
     
    190190
    191191== Changelog ==
     192
     193= 5.2.1 =
     194Release date: April 30, 2025
     195
     196* Bugfix: Fixed fatal error caused by cal_days_in_month() function on 5.2 for unsupported servers.
    192197
    193198= 5.2.0 =
  • backwpup/trunk/vendor/composer/installed.php

    r3284139 r3284895  
    22    'root' => array(
    33        'name' => 'inpsyde/backwpup-pro',
    4         'pretty_version' => '5.2.0',
    5         'version' => '5.2.0.0',
    6         'reference' => '24fa7ddc3a8a0d72683a8fdedc55a492c56ac532',
     4        'pretty_version' => '5.2.1',
     5        'version' => '5.2.1.0',
     6        'reference' => '5f22f5b2473dd0da1733bf536eb9b3f7cf04cd14',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    225225        ),
    226226        'inpsyde/backwpup-pro' => array(
    227             'pretty_version' => '5.2.0',
    228             'version' => '5.2.0.0',
    229             'reference' => '24fa7ddc3a8a0d72683a8fdedc55a492c56ac532',
     227            'pretty_version' => '5.2.1',
     228            'version' => '5.2.1.0',
     229            'reference' => '5f22f5b2473dd0da1733bf536eb9b3f7cf04cd14',
    230230            'type' => 'wordpress-plugin',
    231231            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.