Skip to content

Commit

Permalink
v4.1.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
pryley committed May 8, 2024
1 parent 01b6829 commit 21430b7
Show file tree
Hide file tree
Showing 3 changed files with 5 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.2
* Version: 4.1.3
* Author: Paul Ryley
* Author URI: https://profiles.wordpress.org/pryley#content-plugins
* License: GPLv3
Expand Down
3 changes: 2 additions & 1 deletion plugin/Modules/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ public function startTimer(): void
if (empty($callbacks)) {
return; // We skipped Blackbar callbacks
}
$num = count($callbacks);
$total = 0;
for ($i = 0; $i < count($callbacks); $i++) {
for ($i = 0; $i < $num; $i++) {
$total += count($callbacks[$i]);
}
$this->entries[$hook] = [
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.2
Stable tag: 4.1.3
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.2 (2024-05-08) =
= 4.1.3 (2024-05-08) =

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

0 comments on commit 21430b7

Please sign in to comment.