Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,2 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: milanpetrovic
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: ['https://buymeacoffee.com/millan']
buy_me_a_coffee: millan
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
vendor/
node_modules/
node_modules/
dist/
32 changes: 8 additions & 24 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

## Changelog

### Version: 4.2 (2025.06.30)
### Version: 4.3 (2026.07.17)

* **new** replaced SmartAnimatedPopup with Flyin
* **new** rewritten all JS into TypeScript with no jQuery dependencies
* **new** modern Vite and TypeScript build system
* **removed** all external JavaScript libraries

### Version: 4.2 (2026.06.30)

* **new** tested with WordPress 7.0
* **new** tested and compatible with `PHP` 8.5
Expand Down Expand Up @@ -30,26 +37,3 @@
* **new** tested and compatible with `PHP` 8.4 RC 3
* **new** using composer to load `Kint` library
* **new** various constants for KINT library control

### Version: 3.9.2 (2024.08.23)

* **fix** one more issue with the access to OPCache status information

### Version: 3.9.1 (2024.08.19)

* **fix** problem with the Tracker when closure makes a call

### Version: 3.9 (2024.05.14)

* **edit** few more updates and improvements
* **edit** replacement of some native with WordPress functions
* **edit** various small updates and tweaks
* **edit** Kint Pretty Print Library 5.1.1
* **fix** various PHP notices related to PHP 8.1 and newer

### Version: 3.8 (2024.04.24)

* **edit** few minor tweaks and changes
* **edit** updates to the plugin readme file
* **edit** small changes related to the PHP 8.3 compatibility
* **fix** various PHP notices related to PHP 8.1 and newer
9 changes: 5 additions & 4 deletions core/admin/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
}

class Plugin {
private $_pages = array();
private array $_pages = array();

public function __construct() {
private function __construct() {
add_action( 'admin_menu', array( $this, 'admin_menu' ) );
add_action( 'admin_init', array( $this, 'admin_init' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
Expand Down Expand Up @@ -40,14 +40,15 @@ public function plugin_links( $links, $file ) {
if ( $file == 'debugpress/debugpress.php' ) {
$links[] = '<a target="_blank" rel="noopener" href="https://www.dev4press.com/plugins/debugpress/"><span class="dashicons dashicons-flag" aria-hidden="true" style="font-size: 16px; line-height: 1.3"></span>' . esc_html__( 'Home Page', 'debugpress' ) . '</a>';
$links[] = '<a target="_blank" rel="noopener" href="https://www.buymeacoffee.com/millan"><span class="dashicons dashicons-coffee" aria-hidden="true" style="font-size: 16px; line-height: 1.3"></span>' . esc_html__( 'Buy Me A Coffee', 'debugpress' ) . '</a>';
$links[] = '<a target="_blank" rel="noopener" href="https://ko-fi.com/milanpetrovic"><span class="dashicons dashicons-coffee" aria-hidden="true" style="font-size: 16px; line-height: 1.3"></span>' . esc_html__( 'Ko-Fi', 'debugpress' ) . '</a>';
}

return $links;
}

public function enqueue_scripts() {
wp_enqueue_style( 'debugpress-admin', DEBUGPRESS_PLUGIN_URL . 'css/adminpanel' . ( DEBUGPRESS_IS_DEBUG ? '' : '.min' ) . '.css', array(), DEBUGPRESS_VERSION );
wp_enqueue_script( 'debugpress-admin', DEBUGPRESS_PLUGIN_URL . 'js/adminpanel' . ( DEBUGPRESS_IS_DEBUG ? '' : '.min' ) . '.js', array( 'jquery' ), DEBUGPRESS_VERSION, true );
wp_enqueue_style( 'debugpress-admin', DEBUGPRESS_PLUGIN_DIST_URL . 'admin.css', array(), DEBUGPRESS_VERSION );
wp_enqueue_script( 'debugpress-admin', DEBUGPRESS_PLUGIN_DIST_URL . 'admin.js', array( 'jquery' ), DEBUGPRESS_VERSION, true );
}

public function admin_menu() {
Expand Down
2 changes: 1 addition & 1 deletion core/display/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function button() : string {
$button .= '<span class="debugpress-debug-has-errors" style="display: ' . ( $_error_counts == 0 ? 'none' : 'inline' ) . '" title="' . __( 'PHP Errors', 'debugpress' ) . '">' . $_error_counts . '</span>';

$button .= '</span>';
$button .= '<span class="sanp-sr-only">' . __( 'Open Debugger Panel', 'debugpress' ) . '</span>';
$button .= '<span class="flyin-sr-only">' . __( 'Open Debugger Panel', 'debugpress' ) . '</span>';

return $button;
}
Expand Down
19 changes: 5 additions & 14 deletions core/main/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,21 +167,12 @@ public function activation() {
}

public function init() {
$dependencies = array(
'jquery',
'animated-popup',
);

if ( $this->get( 'mousetrap' ) ) {
$dependencies[] = 'mousetrap';
}
wp_register_style( 'debugpress-print', DEBUGPRESS_PLUGIN_DIST_URL . 'print.css', array(), DEBUGPRESS_VERSION );
wp_register_style( 'dev4press-flyin', DEBUGPRESS_PLUGIN_DIST_URL . 'flyin.css', array(), DEBUGPRESS_FLYIN_VERSION );
wp_register_script( 'dev4press-flyin', DEBUGPRESS_PLUGIN_DIST_URL . 'flyin.js', array(), DEBUGPRESS_FLYIN_VERSION, true );

wp_register_style( 'animated-popup', DEBUGPRESS_PLUGIN_URL . 'libraries/popup/popup.min.css', array(), $this->_animated_popup_version );
wp_register_style( 'debugpress-print', DEBUGPRESS_PLUGIN_URL . 'css/prettyprint' . ( DEBUGPRESS_IS_DEBUG ? '' : '.min' ) . '.css', array(), DEBUGPRESS_VERSION );
wp_register_style( 'debugpress', DEBUGPRESS_PLUGIN_URL . 'css/debugpress' . ( DEBUGPRESS_IS_DEBUG ? '' : '.min' ) . '.css', array( 'animated-popup' ), DEBUGPRESS_VERSION );
wp_register_script( 'animated-popup', DEBUGPRESS_PLUGIN_URL . 'libraries/popup/popup.min.js', array( 'jquery' ), $this->_animated_popup_version, true );
wp_register_script( 'mousetrap', DEBUGPRESS_PLUGIN_URL . 'libraries/mousetrap/mousetrap.min.js', array(), $this->_mousetrap_version, true );
wp_register_script( 'debugpress', DEBUGPRESS_PLUGIN_URL . 'js/debugpress' . ( DEBUGPRESS_IS_DEBUG ? '' : '.min' ) . '.js', $dependencies, DEBUGPRESS_VERSION, true );
wp_register_style( 'debugpress', DEBUGPRESS_PLUGIN_DIST_URL . 'panel.css', array( 'dev4press-flyin', 'debugpress-print' ), DEBUGPRESS_VERSION );
wp_register_script( 'debugpress', DEBUGPRESS_PLUGIN_DIST_URL . 'panel.js', array( 'dev4press-flyin' ), DEBUGPRESS_VERSION, true );

if ( ! $this->is_rest_request() && ! DEBUGPRESS_IS_CLI && ! DEBUGPRESS_IS_AJAX && ! DEBUGPRESS_IS_CRON && $this->is_enabled() ) {
Loader::instance();
Expand Down
Loading