Changeset 3825621
- Timestamp:
- 11/26/2026 06:46:15 AM (4 days ago)
- Location:
- bitlence-dev-code-tracker
- Files:
-
- 8 edited
- 1 copied
-
tags/1.4.2 (copied) (copied from bitlence-dev-code-tracker/trunk )
-
tags/1.4.2/CHANGELOG.md (modified) (1 diff)
-
tags/1.4.2/bitlence-dev-code-tracker.php (modified) (2 diffs)
-
tags/1.4.2/includes/class-admin.php (modified) (4 diffs)
-
tags/1.4.2/readme.txt (modified) (3 diffs)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/bitlence-dev-code-tracker.php (modified) (2 diffs)
-
trunk/includes/class-admin.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bitlence-dev-code-tracker/tags/1.4.2/CHANGELOG.md
r3776461 r3825621 2 2 3 3 All 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` 4 14 5 15 ## [1.4.1] — 2026-10-31 -
bitlence-dev-code-tracker/tags/1.4.2/bitlence-dev-code-tracker.php
r3776461 r3825621 4 4 * Plugin URI: https://bitlence.com/dev-code-tracker-wordpress.html 5 5 * 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. 16 * Version: 1.4.2 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 8.0 … … 17 17 defined( 'ABSPATH' ) || exit; 18 18 19 define( 'BDCT_VERSION', '1.4. 1' );19 define( 'BDCT_VERSION', '1.4.2' ); 20 20 define( 'BDCT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 21 21 define( 'BDCT_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); -
bitlence-dev-code-tracker/tags/1.4.2/includes/class-admin.php
r3776461 r3825621 377 377 $out = fopen( 'php://output', 'w' ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_fopen 378 378 $header = [ 'Started', 'User', 'Page / Post', 'Type', 'Post ID', 'Duration (sec)', 'Duration' ]; 379 fputcsv( $out, $header );379 fputcsv( $out, $header, ',', '"', '' ); 380 380 381 381 foreach ( $sessions as $s ) { … … 390 390 self::format_duration( $sec ) 391 391 ); 392 fputcsv( $out, $row );392 fputcsv( $out, $row, ',', '"', '' ); 393 393 } 394 394 … … 424 424 $header[] = 'Selected Range'; 425 425 } 426 fputcsv( $out, $header );426 fputcsv( $out, $header, ',', '"', '' ); 427 427 428 428 foreach ( $rows as $r ) { … … 436 436 $row[] = self::format_duration( (int) ( $r['range_sec'] ?? 0 ) ); 437 437 } 438 fputcsv( $out, $row );438 fputcsv( $out, $row, ',', '"', '' ); 439 439 } 440 440 -
bitlence-dev-code-tracker/tags/1.4.2/readme.txt
r3776461 r3825621 3 3 Tags: time tracking, developer, admin, productivity, dashboard 4 4 Requires at least: 6.0 5 Tested up to: 7. 05 Tested up to: 7.2 6 6 Requires PHP: 8.0 7 Stable tag: 1.4. 17 Stable tag: 1.4.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 83 83 == Changelog == 84 84 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 85 89 = 1.4.1 = 86 90 * Changed: new Dev Code Tracker logo, now also shown as the admin menu icon … … 139 143 == Upgrade Notice == 140 144 145 = 1.4.2 = 146 WordPress 7.2 and PHP 8.6 compatibility. Fixes a PHP deprecation notice that could appear inside CSV exports. 147 141 148 = 1.4.1 = 142 149 New logo and Bitlence brand colours. No changes to tracking or your data. -
bitlence-dev-code-tracker/trunk/CHANGELOG.md
r3776461 r3825621 2 2 3 3 All 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` 4 14 5 15 ## [1.4.1] — 2026-10-31 -
bitlence-dev-code-tracker/trunk/bitlence-dev-code-tracker.php
r3776461 r3825621 4 4 * Plugin URI: https://bitlence.com/dev-code-tracker-wordpress.html 5 5 * 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. 16 * Version: 1.4.2 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 8.0 … … 17 17 defined( 'ABSPATH' ) || exit; 18 18 19 define( 'BDCT_VERSION', '1.4. 1' );19 define( 'BDCT_VERSION', '1.4.2' ); 20 20 define( 'BDCT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 21 21 define( 'BDCT_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); -
bitlence-dev-code-tracker/trunk/includes/class-admin.php
r3776461 r3825621 377 377 $out = fopen( 'php://output', 'w' ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_fopen 378 378 $header = [ 'Started', 'User', 'Page / Post', 'Type', 'Post ID', 'Duration (sec)', 'Duration' ]; 379 fputcsv( $out, $header );379 fputcsv( $out, $header, ',', '"', '' ); 380 380 381 381 foreach ( $sessions as $s ) { … … 390 390 self::format_duration( $sec ) 391 391 ); 392 fputcsv( $out, $row );392 fputcsv( $out, $row, ',', '"', '' ); 393 393 } 394 394 … … 424 424 $header[] = 'Selected Range'; 425 425 } 426 fputcsv( $out, $header );426 fputcsv( $out, $header, ',', '"', '' ); 427 427 428 428 foreach ( $rows as $r ) { … … 436 436 $row[] = self::format_duration( (int) ( $r['range_sec'] ?? 0 ) ); 437 437 } 438 fputcsv( $out, $row );438 fputcsv( $out, $row, ',', '"', '' ); 439 439 } 440 440 -
bitlence-dev-code-tracker/trunk/readme.txt
r3776461 r3825621 3 3 Tags: time tracking, developer, admin, productivity, dashboard 4 4 Requires at least: 6.0 5 Tested up to: 7. 05 Tested up to: 7.2 6 6 Requires PHP: 8.0 7 Stable tag: 1.4. 17 Stable tag: 1.4.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 83 83 == Changelog == 84 84 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 85 89 = 1.4.1 = 86 90 * Changed: new Dev Code Tracker logo, now also shown as the admin menu icon … … 139 143 == Upgrade Notice == 140 144 145 = 1.4.2 = 146 WordPress 7.2 and PHP 8.6 compatibility. Fixes a PHP deprecation notice that could appear inside CSV exports. 147 141 148 = 1.4.1 = 142 149 New logo and Bitlence brand colours. No changes to tracking or your data.
Note:
See TracChangeset
for help on using the changeset viewer.