Skip to content

Commit

Permalink
v4.1.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
pryley committed May 8, 2024
1 parent b96a421 commit 01b6829
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion blackbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Plugin Name: Black Bar
* Plugin URI: https://wordpress.org/plugins/blackbar
* Description: Black Bar is a Debug Bar for WordPress developers.
* Version: 4.1.1
* Version: 4.1.2
* Author: Paul Ryley
* Author URI: https://profiles.wordpress.org/pryley#content-plugins
* License: GPLv3
Expand Down
5 changes: 4 additions & 1 deletion plugin/Modules/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ public function startTimer(): void
if (empty($callbacks)) {
return; // We skipped Blackbar callbacks
}
$total = count(call_user_func_array('array_merge', $callbacks));
$total = 0;
for ($i = 0; $i < count($callbacks); $i++) {
$total += count($callbacks[$i]);
}
$this->entries[$hook] = [
'callbacks' => $callbacks,
'callbacks_count' => $total,
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: pryley, geminilabs
Donate link: https://ko-fi.com/pryley
Tags: blackbar, black bar, debug bar, debugbar, debugging, development, blackbox
Tested up to: 6.5
Stable tag: 4.1.1
Stable tag: 4.1.2
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -67,7 +67,7 @@ By default, Black Bar displays the 50 slowest action/filter hooks. To display al

== Changelog ==

= 4.1.1 (2024-05-08) =
= 4.1.2 (2024-05-08) =

- Added "blackbar/hooks/all" filter hook
- Added highlighting of major WordPress hooks
Expand Down

0 comments on commit 01b6829

Please sign in to comment.