Plugin Directory

Changeset 3483763 for wp-slimstat


Ignore:
Timestamp:
03/16/2026 11:18:12 AM (12 days ago)
Author:
mostafa.s1990
Message:

Update to version 5.4.3 from GitHub

Location:
wp-slimstat
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-slimstat/tags/5.4.3/languages/wp-slimstat.pot

    r3483202 r3483763  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: SlimStat Analytics 5.4.2\n"
     5"Project-Id-Version: SlimStat Analytics 5.4.3\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-slimstat\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-03-15T15:51:50+00:00\n"
     12"POT-Creation-Date: 2026-03-16T10:28:33+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
  • wp-slimstat/tags/5.4.3/readme.txt

    r3483202 r3483763  
    66Requires PHP: 7.4
    77Tested up to: 6.9.4
    8 Stable tag: 5.4.2
     8Stable tag: 5.4.3
    99License: GPL-2.0+
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7676
    7777== Changelog ==
     78= 5.4.3 - 2026-03-16 =
     79- **Fix**: Fixed fatal error on servers without the PHP calendar extension ([PR #229](https://github.com/wp-slimstat/wp-slimstat/pull/229))
     80- **Fix**: Added defensive fallback for corrupted `start_of_week` option in calendar-related reports
     81- **Improved**: Moved day names array to a class constant in DataBuckets for better maintainability
     82
    7883= 5.4.2 - 2026-03-15 =
    7984- **Fix**: Fixed tracking data not being recorded on some server configurations — REST API and admin-ajax endpoints now return responses correctly ([PR #218](https://github.com/wp-slimstat/wp-slimstat/pull/218))
  • wp-slimstat/tags/5.4.3/src/Helpers/DataBuckets.php

    r3477417 r3483763  
    1212class DataBuckets
    1313{
     14    private const DAY_NAMES = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
     15
    1416    private $labels = [];
    1517
     
    105107        $start       = (new \DateTime())->setTimestamp($this->start);
    106108        $end         = (new \DateTime())->setTimestamp($this->end);
    107         $startOfWeek = get_option('start_of_week', 1);
     109        $startOfWeek = (int) get_option('start_of_week', 1);
    108110
    109111        // Adjust start to the first day of the week
     
    116118
    117119        // Move start to the next week if it is not the start of the week
    118         $start->modify('next ' . jddayofweek($startOfWeek - 1, 1));
     120        $start->modify('next ' . (self::DAY_NAMES[$startOfWeek] ?? 'Monday'));
    119121        if ($start->getTimestamp() <= $this->start) {
    120122            $start->modify('+1 week');
  • wp-slimstat/tags/5.4.3/wp-slimstat.php

    r3483202 r3483763  
    44 * Plugin URI: https://wp-slimstat.com/
    55 * Description: The leading web analytics plugin for WordPress
    6  * Version: 5.4.2
     6 * Version: 5.4.3
    77 * Author: Jason Crouse, VeronaLabs
    88 * Text Domain: wp-slimstat
     
    2121
    2222// Set the plugin version and directory
    23 define('SLIMSTAT_ANALYTICS_VERSION', '5.4.2');
     23define('SLIMSTAT_ANALYTICS_VERSION', '5.4.3');
    2424define('SLIMSTAT_FILE', __FILE__);
    2525define('SLIMSTAT_DIR', __DIR__);
  • wp-slimstat/trunk/languages/wp-slimstat.pot

    r3483202 r3483763  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: SlimStat Analytics 5.4.2\n"
     5"Project-Id-Version: SlimStat Analytics 5.4.3\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-slimstat\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-03-15T15:51:50+00:00\n"
     12"POT-Creation-Date: 2026-03-16T10:28:33+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
  • wp-slimstat/trunk/readme.txt

    r3483202 r3483763  
    66Requires PHP: 7.4
    77Tested up to: 6.9.4
    8 Stable tag: 5.4.2
     8Stable tag: 5.4.3
    99License: GPL-2.0+
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7676
    7777== Changelog ==
     78= 5.4.3 - 2026-03-16 =
     79- **Fix**: Fixed fatal error on servers without the PHP calendar extension ([PR #229](https://github.com/wp-slimstat/wp-slimstat/pull/229))
     80- **Fix**: Added defensive fallback for corrupted `start_of_week` option in calendar-related reports
     81- **Improved**: Moved day names array to a class constant in DataBuckets for better maintainability
     82
    7883= 5.4.2 - 2026-03-15 =
    7984- **Fix**: Fixed tracking data not being recorded on some server configurations — REST API and admin-ajax endpoints now return responses correctly ([PR #218](https://github.com/wp-slimstat/wp-slimstat/pull/218))
  • wp-slimstat/trunk/src/Helpers/DataBuckets.php

    r3477417 r3483763  
    1212class DataBuckets
    1313{
     14    private const DAY_NAMES = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
     15
    1416    private $labels = [];
    1517
     
    105107        $start       = (new \DateTime())->setTimestamp($this->start);
    106108        $end         = (new \DateTime())->setTimestamp($this->end);
    107         $startOfWeek = get_option('start_of_week', 1);
     109        $startOfWeek = (int) get_option('start_of_week', 1);
    108110
    109111        // Adjust start to the first day of the week
     
    116118
    117119        // Move start to the next week if it is not the start of the week
    118         $start->modify('next ' . jddayofweek($startOfWeek - 1, 1));
     120        $start->modify('next ' . (self::DAY_NAMES[$startOfWeek] ?? 'Monday'));
    119121        if ($start->getTimestamp() <= $this->start) {
    120122            $start->modify('+1 week');
  • wp-slimstat/trunk/wp-slimstat.php

    r3483202 r3483763  
    44 * Plugin URI: https://wp-slimstat.com/
    55 * Description: The leading web analytics plugin for WordPress
    6  * Version: 5.4.2
     6 * Version: 5.4.3
    77 * Author: Jason Crouse, VeronaLabs
    88 * Text Domain: wp-slimstat
     
    2121
    2222// Set the plugin version and directory
    23 define('SLIMSTAT_ANALYTICS_VERSION', '5.4.2');
     23define('SLIMSTAT_ANALYTICS_VERSION', '5.4.3');
    2424define('SLIMSTAT_FILE', __FILE__);
    2525define('SLIMSTAT_DIR', __DIR__);
Note: See TracChangeset for help on using the changeset viewer.