Plugin Directory

Changeset 3825621


Ignore:
Timestamp:
11/26/2026 06:46:15 AM (4 days ago)
Author:
kuldip8213
Message:

Release 1.4.2 — WordPress 7.2 and PHP 8.6 compatibility; fix fputcsv() deprecation in CSV exports

Location:
bitlence-dev-code-tracker
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • bitlence-dev-code-tracker/tags/1.4.2/CHANGELOG.md

    r3776461 r3825621  
    22
    33All notable changes to Dev Code Tracker are documented here.
     4
     5## [1.4.2] — 2026-11-26
     6
     7### Fixed
     8- **CSV exports on PHP 8.4+** — `maybe_export_csv()` and `maybe_export_team_csv()` called `fputcsv()` without the `$escape` argument, which is deprecated since PHP 8.4. With `WP_DEBUG` display on, the `Deprecated:` notice was written into the downloaded CSV. All four calls now pass `',', '"', ''` explicitly (empty escape = RFC 4180 quoting)
     9
     10### Changed
     11- **Tested up to WordPress 7.2** (verified on 7.2-RC3 with PHP 8.6): PHPUnit suite passes with deprecations/notices/warnings converted to failures; all admin pages, toolbar node and both CSV exports checked with `WP_DEBUG` on; Plugin Check clean on the `bin/build.sh` zip. 7.2's switch to inline SVG admin icons doesn't affect the plugin — core still supports base64 `data:image/svg+xml` menu icons (recoloured by `svg-painter`), and the admin bar node markup (`a.ab-item`) is unchanged
     12- Dev deps: `wp-phpunit/wp-phpunit` and `johnpbloch/wordpress-core` bumped from `^6` to `^7`
     13- Local test DB host port moved from `3311` to `3321` (`tests/wp-tests-config-sample.php`, `tests/README.md`) — `3311` clashes with another local project's database; local `docker-compose.yml` now uses `wordpress:php8.6-apache`
    414
    515## [1.4.1] — 2026-10-31
  • bitlence-dev-code-tracker/tags/1.4.2/bitlence-dev-code-tracker.php

    r3776461 r3825621  
    44 * Plugin URI:        https://bitlence.com/dev-code-tracker-wordpress.html
    55 * Description:       Track time spent in wp-admin per page/post with idle detection, a 30-day chart, streak tracker, and per-page breakdown.
    6  * Version:           1.4.1
     6 * Version:           1.4.2
    77 * Requires at least: 6.0
    88 * Requires PHP:      8.0
    … …  
    1717defined( 'ABSPATH' ) || exit;
    1818
    19 define( 'BDCT_VERSION',    '1.4.1' );
     19define( 'BDCT_VERSION',    '1.4.2' );
    2020define( 'BDCT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    2121define( 'BDCT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
  • bitlence-dev-code-tracker/tags/1.4.2/includes/class-admin.php

    r3776461 r3825621  
    377377        $out    = fopen( 'php://output', 'w' ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_fopen
    378378        $header = [ 'Started', 'User', 'Page / Post', 'Type', 'Post ID', 'Duration (sec)', 'Duration' ];
    379         fputcsv( $out, $header );
     379        fputcsv( $out, $header, ',', '"', '' );
    380380
    381381        foreach ( $sessions as $s ) {
    … …  
    390390                self::format_duration( $sec )
    391391            );
    392             fputcsv( $out, $row );
     392            fputcsv( $out, $row, ',', '"', '' );
    393393        }
    394394
    … …  
    424424            $header[] = 'Selected Range';
    425425        }
    426         fputcsv( $out, $header );
     426        fputcsv( $out, $header, ',', '"', '' );
    427427
    428428        foreach ( $rows as $r ) {
    … …  
    436436                $row[] = self::format_duration( (int) ( $r['range_sec'] ?? 0 ) );
    437437            }
    438             fputcsv( $out, $row );
     438            fputcsv( $out, $row, ',', '"', '' );
    439439        }
    440440
  • bitlence-dev-code-tracker/tags/1.4.2/readme.txt

    r3776461 r3825621  
    33Tags:              time tracking, developer, admin, productivity, dashboard
    44Requires at least: 6.0
    5 Tested up to:      7.0
     5Tested up to:      7.2
    66Requires PHP:      8.0
    7 Stable tag:        1.4.1
     7Stable tag:        1.4.2
    88License:           GPLv2 or later
    99License URI:       https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    8383== Changelog ==
    8484
     85= 1.4.2 =
     86* Tested with WordPress 7.2 and PHP 8.6
     87* Fixed: Sessions Log and Team Overview CSV exports no longer include a PHP 8.4+ `fputcsv()` deprecation notice in the downloaded file when debug output is on
     88
    8589= 1.4.1 =
    8690* Changed: new Dev Code Tracker logo, now also shown as the admin menu icon
    … …  
    139143== Upgrade Notice ==
    140144
     145= 1.4.2 =
     146WordPress 7.2 and PHP 8.6 compatibility. Fixes a PHP deprecation notice that could appear inside CSV exports.
     147
    141148= 1.4.1 =
    142149New logo and Bitlence brand colours. No changes to tracking or your data.
  • bitlence-dev-code-tracker/trunk/CHANGELOG.md

    r3776461 r3825621  
    22
    33All notable changes to Dev Code Tracker are documented here.
     4
     5## [1.4.2] — 2026-11-26
     6
     7### Fixed
     8- **CSV exports on PHP 8.4+** — `maybe_export_csv()` and `maybe_export_team_csv()` called `fputcsv()` without the `$escape` argument, which is deprecated since PHP 8.4. With `WP_DEBUG` display on, the `Deprecated:` notice was written into the downloaded CSV. All four calls now pass `',', '"', ''` explicitly (empty escape = RFC 4180 quoting)
     9
     10### Changed
     11- **Tested up to WordPress 7.2** (verified on 7.2-RC3 with PHP 8.6): PHPUnit suite passes with deprecations/notices/warnings converted to failures; all admin pages, toolbar node and both CSV exports checked with `WP_DEBUG` on; Plugin Check clean on the `bin/build.sh` zip. 7.2's switch to inline SVG admin icons doesn't affect the plugin — core still supports base64 `data:image/svg+xml` menu icons (recoloured by `svg-painter`), and the admin bar node markup (`a.ab-item`) is unchanged
     12- Dev deps: `wp-phpunit/wp-phpunit` and `johnpbloch/wordpress-core` bumped from `^6` to `^7`
     13- Local test DB host port moved from `3311` to `3321` (`tests/wp-tests-config-sample.php`, `tests/README.md`) — `3311` clashes with another local project's database; local `docker-compose.yml` now uses `wordpress:php8.6-apache`
    414
    515## [1.4.1] — 2026-10-31
  • bitlence-dev-code-tracker/trunk/bitlence-dev-code-tracker.php

    r3776461 r3825621  
    44 * Plugin URI:        https://bitlence.com/dev-code-tracker-wordpress.html
    55 * Description:       Track time spent in wp-admin per page/post with idle detection, a 30-day chart, streak tracker, and per-page breakdown.
    6  * Version:           1.4.1
     6 * Version:           1.4.2
    77 * Requires at least: 6.0
    88 * Requires PHP:      8.0
    … …  
    1717defined( 'ABSPATH' ) || exit;
    1818
    19 define( 'BDCT_VERSION',    '1.4.1' );
     19define( 'BDCT_VERSION',    '1.4.2' );
    2020define( 'BDCT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    2121define( 'BDCT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
  • bitlence-dev-code-tracker/trunk/includes/class-admin.php

    r3776461 r3825621  
    377377        $out    = fopen( 'php://output', 'w' ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_fopen
    378378        $header = [ 'Started', 'User', 'Page / Post', 'Type', 'Post ID', 'Duration (sec)', 'Duration' ];
    379         fputcsv( $out, $header );
     379        fputcsv( $out, $header, ',', '"', '' );
    380380
    381381        foreach ( $sessions as $s ) {
    … …  
    390390                self::format_duration( $sec )
    391391            );
    392             fputcsv( $out, $row );
     392            fputcsv( $out, $row, ',', '"', '' );
    393393        }
    394394
    … …  
    424424            $header[] = 'Selected Range';
    425425        }
    426         fputcsv( $out, $header );
     426        fputcsv( $out, $header, ',', '"', '' );
    427427
    428428        foreach ( $rows as $r ) {
    … …  
    436436                $row[] = self::format_duration( (int) ( $r['range_sec'] ?? 0 ) );
    437437            }
    438             fputcsv( $out, $row );
     438            fputcsv( $out, $row, ',', '"', '' );
    439439        }
    440440
  • bitlence-dev-code-tracker/trunk/readme.txt

    r3776461 r3825621  
    33Tags:              time tracking, developer, admin, productivity, dashboard
    44Requires at least: 6.0
    5 Tested up to:      7.0
     5Tested up to:      7.2
    66Requires PHP:      8.0
    7 Stable tag:        1.4.1
     7Stable tag:        1.4.2
    88License:           GPLv2 or later
    99License URI:       https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    8383== Changelog ==
    8484
     85= 1.4.2 =
     86* Tested with WordPress 7.2 and PHP 8.6
     87* Fixed: Sessions Log and Team Overview CSV exports no longer include a PHP 8.4+ `fputcsv()` deprecation notice in the downloaded file when debug output is on
     88
    8589= 1.4.1 =
    8690* Changed: new Dev Code Tracker logo, now also shown as the admin menu icon
    … …  
    139143== Upgrade Notice ==
    140144
     145= 1.4.2 =
     146WordPress 7.2 and PHP 8.6 compatibility. Fixes a PHP deprecation notice that could appear inside CSV exports.
     147
    141148= 1.4.1 =
    142149New logo and Bitlence brand colours. No changes to tracking or your data.
Note: See TracChangeset for help on using the changeset viewer.