Version Description
- Fix Undefined index:
cache_misses
. - Don't load QM during cron requests because we've no persistent storage yet and no means of outputting data that's collected.
- Tweak some colours to bring them inline with the WordPress admin area colours.
- Better handling for HTTP requests which don't include the
ssl
argument for any reason.
Download this release
Release Info
Developer | johnbillion |
Plugin | Query Monitor |
Version | 2.11.1 |
Comparing to | |
See all releases |
Code changes from version 2.11.0 to 2.11.1
- assets/query-monitor.css +5 -5
- collectors/cache.php +1 -1
- output/html/http.php +1 -1
- query-monitor.php +6 -1
- readme.txt +8 -1
- wp-content/db.php +5 -0
assets/query-monitor.css
CHANGED
@@ -178,7 +178,7 @@ body.wp-admin.folded #qm {
|
|
178 |
}
|
179 |
|
180 |
#qm-title {
|
181 |
-
color: #
|
182 |
font: 13px/15px 'Open Sans', Arial !important;
|
183 |
margin: 35px 0 -15px !important;
|
184 |
}
|
@@ -433,7 +433,7 @@ body.wp-admin.folded #qm {
|
|
433 |
|
434 |
#qm-title a,
|
435 |
.qm a {
|
436 |
-
color: #
|
437 |
text-decoration: none !important;
|
438 |
text-shadow: none !important;
|
439 |
font-weight: normal !important;
|
@@ -444,7 +444,7 @@ body.wp-admin.folded #qm {
|
|
444 |
.qm a:focus,
|
445 |
.qm a:hover {
|
446 |
text-decoration: underline !important;
|
447 |
-
color: #
|
448 |
}
|
449 |
|
450 |
.qm a.qm-warn {
|
@@ -452,7 +452,7 @@ body.wp-admin.folded #qm {
|
|
452 |
}
|
453 |
|
454 |
.qm a.qm-toggle {
|
455 |
-
color: #
|
456 |
padding: 4px 8px 3px !important;
|
457 |
border-left: 1px solid #e8e8e8 !important;
|
458 |
border-bottom: 1px solid #e8e8e8 !important;
|
@@ -466,7 +466,7 @@ body.wp-admin.folded #qm {
|
|
466 |
.qm a.qm-toggle:hover {
|
467 |
text-decoration: none !important;
|
468 |
border-color: #e8e8e8 !important;
|
469 |
-
color: #
|
470 |
background: #eee !important;
|
471 |
}
|
472 |
|
178 |
}
|
179 |
|
180 |
#qm-title {
|
181 |
+
color: #555d66 !important;
|
182 |
font: 13px/15px 'Open Sans', Arial !important;
|
183 |
margin: 35px 0 -15px !important;
|
184 |
}
|
433 |
|
434 |
#qm-title a,
|
435 |
.qm a {
|
436 |
+
color: #0073aa !important;
|
437 |
text-decoration: none !important;
|
438 |
text-shadow: none !important;
|
439 |
font-weight: normal !important;
|
444 |
.qm a:focus,
|
445 |
.qm a:hover {
|
446 |
text-decoration: underline !important;
|
447 |
+
color: #0073aa !important;
|
448 |
}
|
449 |
|
450 |
.qm a.qm-warn {
|
452 |
}
|
453 |
|
454 |
.qm a.qm-toggle {
|
455 |
+
color: #0073aa !important;
|
456 |
padding: 4px 8px 3px !important;
|
457 |
border-left: 1px solid #e8e8e8 !important;
|
458 |
border-bottom: 1px solid #e8e8e8 !important;
|
466 |
.qm a.qm-toggle:hover {
|
467 |
text-decoration: none !important;
|
468 |
border-color: #e8e8e8 !important;
|
469 |
+
color: #0073aa !important;
|
470 |
background: #eee !important;
|
471 |
}
|
472 |
|
collectors/cache.php
CHANGED
@@ -48,7 +48,7 @@ class QM_Collector_Cache extends QM_Collector {
|
|
48 |
|
49 |
}
|
50 |
|
51 |
-
if ( isset( $this->data['stats']['cache_hits'] ) && $this->data['stats']['cache_misses'] ) {
|
52 |
$total = $this->data['stats']['cache_misses'] + $this->data['stats']['cache_hits'];
|
53 |
$this->data['cache_hit_percentage'] = ( 100 / $total ) * $this->data['stats']['cache_hits'];
|
54 |
}
|
48 |
|
49 |
}
|
50 |
|
51 |
+
if ( isset( $this->data['stats']['cache_hits'] ) && isset( $this->data['stats']['cache_misses'] ) ) {
|
52 |
$total = $this->data['stats']['cache_misses'] + $this->data['stats']['cache_hits'];
|
53 |
$this->data['cache_hit_percentage'] = ( 100 / $total ) * $this->data['stats']['cache_hits'];
|
54 |
}
|
output/html/http.php
CHANGED
@@ -101,7 +101,7 @@ class QM_Output_Html_HTTP extends QM_Output_Html {
|
|
101 |
) ) . '</span>';
|
102 |
}
|
103 |
|
104 |
-
if (
|
105 |
$method .= '<br><span class="qm-warn">' . esc_html( sprintf(
|
106 |
__( '(Certificate verification disabled: %s)', 'query-monitor' ),
|
107 |
'sslverify=false'
|
101 |
) ) . '</span>';
|
102 |
}
|
103 |
|
104 |
+
if ( empty( $row['args']['sslverify'] ) && empty( $row['args']['local'] ) && 'https' === parse_url( $row['url'], PHP_URL_SCHEME ) ) {
|
105 |
$method .= '<br><span class="qm-warn">' . esc_html( sprintf(
|
106 |
__( '(Certificate verification disabled: %s)', 'query-monitor' ),
|
107 |
'sslverify=false'
|
query-monitor.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Query Monitor
|
4 |
Description: Monitoring of database queries, hooks, conditionals and more.
|
5 |
-
Version: 2.11.
|
6 |
Plugin URI: https://github.com/johnbillion/querymonitor
|
7 |
Author: John Blackbourn
|
8 |
Author URI: https://johnblackbourn.com/
|
@@ -36,6 +36,11 @@ if ( 'cli' === php_sapi_name() && ! defined( 'QM_TESTS' ) ) {
|
|
36 |
return;
|
37 |
}
|
38 |
|
|
|
|
|
|
|
|
|
|
|
39 |
# No autoloaders for us. See https://github.com/johnbillion/QueryMonitor/issues/7
|
40 |
$qm_dir = dirname( __FILE__ );
|
41 |
foreach ( array( 'Backtrace', 'Collectors', 'Collector', 'Plugin', 'Util', 'Dispatchers', 'Dispatcher', 'Output' ) as $qm_class ) {
|
2 |
/*
|
3 |
Plugin Name: Query Monitor
|
4 |
Description: Monitoring of database queries, hooks, conditionals and more.
|
5 |
+
Version: 2.11.1
|
6 |
Plugin URI: https://github.com/johnbillion/querymonitor
|
7 |
Author: John Blackbourn
|
8 |
Author URI: https://johnblackbourn.com/
|
36 |
return;
|
37 |
}
|
38 |
|
39 |
+
if ( defined( 'DOING_CRON' ) && DOING_CRON ) {
|
40 |
+
# Let's not load QM during cron events for the same reason as above.
|
41 |
+
return;
|
42 |
+
}
|
43 |
+
|
44 |
# No autoloaders for us. See https://github.com/johnbillion/QueryMonitor/issues/7
|
45 |
$qm_dir = dirname( __FILE__ );
|
46 |
foreach ( array( 'Backtrace', 'Collectors', 'Collector', 'Plugin', 'Util', 'Dispatchers', 'Dispatcher', 'Output' ) as $qm_class ) {
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: johnbillion
|
|
3 |
Tags: ajax, debug, debug-bar, debugging, development, developer, performance, profiler, profiling, queries, query monitor, rest-api
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 4.5
|
6 |
-
Stable tag: 2.11.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
View debugging and performance information on database queries, hooks, conditionals, HTTP requests, redirects and more.
|
@@ -174,6 +174,13 @@ No, I do not accept donations. If you like the plugin, I'd love for you to [leav
|
|
174 |
|
175 |
== Changelog ==
|
176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
= 2.11.0 =
|
178 |
|
179 |
* Template parts used in the current request are now listed along with the template file.
|
3 |
Tags: ajax, debug, debug-bar, debugging, development, developer, performance, profiler, profiling, queries, query monitor, rest-api
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 4.5
|
6 |
+
Stable tag: 2.11.1
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
View debugging and performance information on database queries, hooks, conditionals, HTTP requests, redirects and more.
|
174 |
|
175 |
== Changelog ==
|
176 |
|
177 |
+
= 2.11.1 =
|
178 |
+
|
179 |
+
* Fix Undefined index: `cache_misses`.
|
180 |
+
* Don't load QM during cron requests because we've no persistent storage yet and no means of outputting data that's collected.
|
181 |
+
* Tweak some colours to bring them inline with the WordPress admin area colours.
|
182 |
+
* Better handling for HTTP requests which don't include the `ssl` argument for any reason.
|
183 |
+
|
184 |
= 2.11.0 =
|
185 |
|
186 |
* Template parts used in the current request are now listed along with the template file.
|
wp-content/db.php
CHANGED
@@ -35,6 +35,11 @@ if ( 'cli' === php_sapi_name() && ! defined( 'QM_TESTS' ) ) {
|
|
35 |
return;
|
36 |
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
38 |
# No autoloaders for us. See https://github.com/johnbillion/QueryMonitor/issues/7
|
39 |
$qm_dir = dirname( dirname( __FILE__ ) );
|
40 |
if ( ! is_readable( $backtrace = "{$qm_dir}/classes/Backtrace.php" ) ) {
|
35 |
return;
|
36 |
}
|
37 |
|
38 |
+
if ( defined( 'DOING_CRON' ) && DOING_CRON ) {
|
39 |
+
# Let's not load QM during cron events for the same reason as above.
|
40 |
+
return;
|
41 |
+
}
|
42 |
+
|
43 |
# No autoloaders for us. See https://github.com/johnbillion/QueryMonitor/issues/7
|
44 |
$qm_dir = dirname( dirname( __FILE__ ) );
|
45 |
if ( ! is_readable( $backtrace = "{$qm_dir}/classes/Backtrace.php" ) ) {
|