Skip to content

Commit

Permalink
v4.0.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
pryley committed Mar 4, 2023
1 parent a7d35b2 commit 737a994
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 21 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.0.0
* Version: 4.0.1
* Author: Paul Ryley
* Author URI: https://profiles.wordpress.org/pryley#content-plugins
* License: GPLv3
Expand Down
6 changes: 6 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
= 4.0.1 (2023-03-04) =

- Added cache busting to enqueued assets
- Added console level filter counts
- Added HTTP_COOKIE value to INPUT_SERVER globals

= 4.0.0 (2023-02-13) =

- Added console level filters
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions languages/blackbar-en_US.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: en_US\n"

#: views/debug-bar.php:19
msgid "Toggle"
msgstr "Toggle"

#: views/debug-bar.php:31
#: views/debug-bar.php:20
msgid "Close"
msgstr "Close"

#: views/debug-bar.php:25
msgid "Toggle"
msgstr "Toggle"

#: plugin/Modules/Console.php:70
msgid "Console"
msgstr "Console"
Expand Down
8 changes: 4 additions & 4 deletions languages/blackbar.pot
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ msgctxt "admin-text"
msgid "This plugin requires %s or greater in order to work properly."
msgstr ""

#: views/debug-bar.php:19
msgid "Toggle"
#: views/debug-bar.php:20
msgid "Close"
msgstr ""

#: views/debug-bar.php:31
msgid "Close"
#: views/debug-bar.php:25
msgid "Toggle"
msgstr ""

#: plugin/Modules/Console.php:70
Expand Down
8 changes: 4 additions & 4 deletions plugin/Dump.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function formatKey(string $key): string
{
$result = [];
$result[] = str_repeat(' ', $this->level * 4).'[';
if (is_string($key) && "\0" === $key[0]) {
if ("\0" === $key[0]) {
$keyParts = explode("\0", $key);
$result[] = $keyParts[2].(('*' === $keyParts[1]) ? ':protected' : ':private');
} else {
Expand Down Expand Up @@ -107,7 +107,7 @@ protected function inspectObject($subject): void
$subject = (array) $subject;
}
foreach ($subject as $key => $val) {
if (false === $this->isIgnoredKey($key)) {
if (!$this->isIgnoredKey($key)) {
$this->result[] = $this->formatKey($key);
$this->inspect($val);
}
Expand All @@ -131,11 +131,11 @@ protected function inspectPrimitive($subject): void
}

/**
* @param string $key
* @param mixed $key
*/
protected function isIgnoredKey($key): bool
{
return in_array($key, $this->ignore);
return !is_string($key) || in_array($key, $this->ignore);
}

protected function reset(): void
Expand Down
8 changes: 7 additions & 1 deletion 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.1
Stable tag: 4.0.0
Stable tag: 4.0.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -61,6 +61,12 @@ By default, Black Bar is only visible to administrator users. To enable it for a

== Changelog ==

= 4.0.1 (2023-03-04) =

- Added cache busting to enqueued assets
- Added console level filter counts
- Added HTTP_COOKIE value to INPUT_SERVER globals

= 4.0.0 (2023-02-13) =

- Added console level filters
Expand Down

0 comments on commit 737a994

Please sign in to comment.