Changeset 3341697
- Timestamp:
- 08/08/2025 02:13:30 PM (8 months ago)
- Location:
- debug-log-admin-viewer
- Files:
-
- 22 added
- 5 edited
-
tags/1.0.2 (added)
-
tags/1.0.2/CHANGELOG.md (added)
-
tags/1.0.2/admin (added)
-
tags/1.0.2/admin/class-debug-log-admin-viewer-admin.php (added)
-
tags/1.0.2/admin/css (added)
-
tags/1.0.2/admin/css/debug-log-admin-viewer-admin.css (added)
-
tags/1.0.2/admin/js (added)
-
tags/1.0.2/admin/js/debug-log-admin-viewer-admin.js (added)
-
tags/1.0.2/assets (added)
-
tags/1.0.2/assets/banner-1544x500.jpeg (added)
-
tags/1.0.2/assets/banner-772x250.jpeg (added)
-
tags/1.0.2/assets/icon-128x128.jpg (added)
-
tags/1.0.2/assets/icon-256x256.jpg (added)
-
tags/1.0.2/assets/icon.jpg (added)
-
tags/1.0.2/assets/screenshot-1.png (added)
-
tags/1.0.2/assets/screenshot-2.png (added)
-
tags/1.0.2/debug-log-admin-viewer.php (added)
-
tags/1.0.2/includes (added)
-
tags/1.0.2/includes/class-debug-log-admin-viewer-loader.php (added)
-
tags/1.0.2/includes/class-debug-log-admin-viewer.php (added)
-
tags/1.0.2/readme.md (added)
-
tags/1.0.2/readme.txt (added)
-
trunk/CHANGELOG.md (modified) (2 diffs)
-
trunk/admin/class-debug-log-admin-viewer-admin.php (modified) (2 diffs)
-
trunk/debug-log-admin-viewer.php (modified) (2 diffs)
-
trunk/readme.md (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
debug-log-admin-viewer/trunk/CHANGELOG.md
r3262970 r3341697 4 4 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), 5 5 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 6 7 ## [1.0.2] - 2025-08-08 8 ### Changed 9 - The log content is now displayed in reverse order, with the newest entries first. 10 6 11 7 12 ## [1.0.1] - 2025-03-27 … … 36 41 - WP_DEBUG_DISPLAY 37 42 43 [1.0.2]: https://github.com/aidamartinez/debug-log-admin-viewer/releases/tag/v1.0.2 38 44 [1.0.1]: https://github.com/aidamartinez/debug-log-admin-viewer/releases/tag/v1.0.1 39 45 [1.0.0]: https://github.com/aidamartinez/debug-log-admin-viewer/releases/tag/v1.0.0 -
debug-log-admin-viewer/trunk/admin/class-debug-log-admin-viewer-admin.php
r3262970 r3341697 454 454 * Get the debug log content. 455 455 * 456 * @return string The debug log content .456 * @return string The debug log content with newest entries first. 457 457 */ 458 458 public function debug_log_admin_viewer_get_debug_log_content() { … … 468 468 } 469 469 470 $content = file_get_contents($log_file); 471 return $content ?: ''; 470 $content = @file_get_contents($log_file); 471 if ($content === false) { 472 error_log('Failed to read debug log file'); 473 return ''; 474 } 475 476 $content = trim($content); 477 if (empty($content)) { 478 return ''; 479 } 480 481 // Split the content into lines and reverse the array to show newest first 482 $lines = explode(PHP_EOL, $content); 483 $lines = array_filter($lines); // Remove empty lines 484 $lines = array_reverse($lines); 485 486 // Rebuild the content with newlines 487 return implode(PHP_EOL, $lines); 472 488 } 473 489 -
debug-log-admin-viewer/trunk/debug-log-admin-viewer.php
r3262970 r3341697 11 11 * Plugin URI: https://wordpress.org/plugins/debug-log-admin-viewer 12 12 * Description: A powerful debug log admin viewer with filtering and search capabilities, plus debug settings management. 13 * Version: 1.0. 113 * Version: 1.0.2 14 14 * Author: TWK Media 15 15 * Author URI: https://www.thewebkitchen.co.uk/ … … 24 24 } 25 25 26 define( 'DEBUG_LOG_ADMIN_VIEWER_VERSION', '1.0. 1' );26 define( 'DEBUG_LOG_ADMIN_VIEWER_VERSION', '1.0.2' ); 27 27 define( 'DEBUG_LOG_ADMIN_VIEWER_DIR', plugin_dir_path( __FILE__ ) ); 28 28 -
debug-log-admin-viewer/trunk/readme.md
r3286300 r3341697 5 5 Requires at least: 5.0 6 6 Tested up to: 6.8 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later -
debug-log-admin-viewer/trunk/readme.txt
r3286300 r3341697 4 4 Requires at least: 5.0 5 5 Tested up to: 6.8 6 Stable tag: 1.0. 16 Stable tag: 1.0.2 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.