Version Description
- Fix PHP8+ critical error if
php_uname
is disabled
Download this release
Release Info
Developer | aidvu |
Plugin | Debug Bar |
Version | 1.1.4 |
Comparing to | |
See all releases |
Code changes from version 1.1.3 to 1.1.4
- debug-bar.php +11 -4
- readme.txt +7 -1
debug-bar.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin URI: https://wordpress.org/plugins/debug-bar/
|
5 |
Description: Adds a debug menu to the admin bar that shows query, cache, and other helpful debugging information.
|
6 |
Author: wordpressdotorg
|
7 |
-
Version: 1.1.
|
8 |
Author URI: https://wordpress.org/
|
9 |
Text Domain: debug-bar
|
10 |
*/
|
@@ -286,11 +286,18 @@ class Debug_Bar {
|
|
286 |
|
287 |
<div id='debug-bar-info'>
|
288 |
<div id="debug-status">
|
289 |
-
<?php
|
290 |
-
$statuses
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
$statuses[] = array(
|
292 |
'site',
|
293 |
-
|
294 |
/* translators: %d is the site id number in a multi-site setting. */
|
295 |
sprintf( __( '#%d', 'debug-bar' ), get_current_blog_id() ),
|
296 |
);
|
4 |
Plugin URI: https://wordpress.org/plugins/debug-bar/
|
5 |
Description: Adds a debug menu to the admin bar that shows query, cache, and other helpful debugging information.
|
6 |
Author: wordpressdotorg
|
7 |
+
Version: 1.1.4
|
8 |
Author URI: https://wordpress.org/
|
9 |
Text Domain: debug-bar
|
10 |
*/
|
286 |
|
287 |
<div id='debug-bar-info'>
|
288 |
<div id="debug-status">
|
289 |
+
<?php
|
290 |
+
$statuses = array();
|
291 |
+
|
292 |
+
$host_name = __( 'Site', 'debug-bar' );
|
293 |
+
if ( is_callable( 'php_uname' ) ) {
|
294 |
+
$host_name = php_uname( 'n' );
|
295 |
+
} elseif ( ! empty( $_SERVER['SERVER_NAME'] ) ) {
|
296 |
+
$host_name = $_SERVER['SERVER_NAME'];
|
297 |
+
}
|
298 |
$statuses[] = array(
|
299 |
'site',
|
300 |
+
$host_name,
|
301 |
/* translators: %d is the site id number in a multi-site setting. */
|
302 |
sprintf( __( '#%d', 'debug-bar' ), get_current_blog_id() ),
|
303 |
);
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: wordpressdotorg, ryan, westi, koopersmith, duck_, mitchoyoshitaka, dd32, jrf, obenland, nacin, evansolomon, Otto42, aidvu, josephscott
|
3 |
Tags: debug
|
4 |
Tested up to: 6.1
|
5 |
-
Stable tag: 1.1.
|
6 |
Requires at least: 3.4
|
7 |
|
8 |
Adds a debug menu to the admin bar that shows query, cache, and other helpful debugging information.
|
@@ -29,6 +29,9 @@ There are numerous other add-ons available to get more insight into, for instanc
|
|
29 |
|
30 |
== Upgrade Notice ==
|
31 |
|
|
|
|
|
|
|
32 |
= 1.1.3 =
|
33 |
- Fix notices in HTTP Requests panel when a request is stopped/doesn't finish.
|
34 |
- Decode the SQL in the WP_Query panel.
|
@@ -119,6 +122,9 @@ Initial Release
|
|
119 |
|
120 |
== Changelog ==
|
121 |
|
|
|
|
|
|
|
122 |
= 1.1.3 =
|
123 |
- Fix notices in HTTP Requests panel when a request is stopped/doesn't finish.
|
124 |
- Decode the SQL in the WP_Query panel.
|
2 |
Contributors: wordpressdotorg, ryan, westi, koopersmith, duck_, mitchoyoshitaka, dd32, jrf, obenland, nacin, evansolomon, Otto42, aidvu, josephscott
|
3 |
Tags: debug
|
4 |
Tested up to: 6.1
|
5 |
+
Stable tag: 1.1.4
|
6 |
Requires at least: 3.4
|
7 |
|
8 |
Adds a debug menu to the admin bar that shows query, cache, and other helpful debugging information.
|
29 |
|
30 |
== Upgrade Notice ==
|
31 |
|
32 |
+
= 1.1.4 =
|
33 |
+
- Fix PHP8+ critical error if `php_uname` is disabled
|
34 |
+
|
35 |
= 1.1.3 =
|
36 |
- Fix notices in HTTP Requests panel when a request is stopped/doesn't finish.
|
37 |
- Decode the SQL in the WP_Query panel.
|
122 |
|
123 |
== Changelog ==
|
124 |
|
125 |
+
= 1.1.4 =
|
126 |
+
- Fix PHP8+ critical error if `php_uname` is disabled
|
127 |
+
|
128 |
= 1.1.3 =
|
129 |
- Fix notices in HTTP Requests panel when a request is stopped/doesn't finish.
|
130 |
- Decode the SQL in the WP_Query panel.
|