Query Monitor - Version 3.6.4

Version Description

Download this release

Release Info

Developer johnbillion
Plugin Icon 128x128 Query Monitor
Version 3.6.4
Comparing to
See all releases

Code changes from version 3.6.3 to 3.6.4

Files changed (3) hide show
  1. output/headers/php_errors.php +10 -3
  2. query-monitor.php +1 -1
  3. readme.txt +5 -10
output/headers/php_errors.php CHANGED
@@ -32,15 +32,22 @@ class QM_Output_Headers_PHP_Errors extends QM_Output_Headers {
32
 
33
  # @TODO we should calculate the component during process() so we don't need to do it
34
  # separately in each output.
35
- $component = $error['trace']->get_component();
 
 
 
 
 
 
 
36
  $output_error = array(
37
  'key' => $error_key,
38
  'type' => $error['type'],
39
  'message' => $error['message'],
40
  'file' => QM_Util::standard_dir( $error['file'], '' ),
41
  'line' => $error['line'],
42
- 'stack' => $error['trace']->get_stack(),
43
- 'component' => $component->name,
44
  );
45
 
46
  $key = sprintf( 'error-%d', $count );
32
 
33
  # @TODO we should calculate the component during process() so we don't need to do it
34
  # separately in each output.
35
+ if ( $error['trace'] ) {
36
+ $component = $error['trace']->get_component()->name;
37
+ $stack = $error['trace']->get_stack();
38
+ } else {
39
+ $component = __( 'Unknown', 'query-monitor' );
40
+ $stack = array();
41
+ }
42
+
43
  $output_error = array(
44
  'key' => $error_key,
45
  'type' => $error['type'],
46
  'message' => $error['message'],
47
  'file' => QM_Util::standard_dir( $error['file'], '' ),
48
  'line' => $error['line'],
49
+ 'stack' => $stack,
50
+ 'component' => $component,
51
  );
52
 
53
  $key = sprintf( 'error-%d', $count );
query-monitor.php CHANGED
@@ -10,7 +10,7 @@
10
  *
11
  * Plugin Name: Query Monitor
12
  * Description: The Developer Tools Panel for WordPress.
13
- * Version: 3.6.3
14
  * Plugin URI: https://querymonitor.com/
15
  * Author: John Blackbourn
16
  * Author URI: https://querymonitor.com/
10
  *
11
  * Plugin Name: Query Monitor
12
  * Description: The Developer Tools Panel for WordPress.
13
+ * Version: 3.6.4
14
  * Plugin URI: https://querymonitor.com/
15
  * Author: John Blackbourn
16
  * Author URI: https://querymonitor.com/
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: johnbillion
3
  Tags: debug, debug-bar, debugging, development, developer, performance, profiler, queries, query monitor, rest-api
4
  Requires at least: 3.7
5
  Tested up to: 5.5
6
- Stable tag: 3.6.3
7
  License: GPLv2 or later
8
  Requires PHP: 5.3
9
 
@@ -113,6 +113,10 @@ No, I do not accept donations. If you like the plugin, I'd love for you to [leav
113
 
114
  ## Changelog ##
115
 
 
 
 
 
116
  ### 3.6.3 ###
117
 
118
  * Correct the size of the close icon.
@@ -456,12 +460,3 @@ New features! Read about them here: https://querymonitor.com/blog/2019/02/new-fe
456
  * More defensive CSS.
457
  * Fix the size of the expand/contract buttons.
458
  * Avoid showing two unnecessary functions in the call stack for textdomain loading.
459
-
460
- ### 2.13.4 ###
461
-
462
- * Highlight the main query to make it easier to find.
463
- * Allow filtering the db queries list to see just the main query.
464
- * Visual fixes for buttons, toggles, and filters.
465
- * Add some missing i18n.
466
- * Add some missing table row text.
467
- * Correct the Drop-in Plugins URL for network admin
3
  Tags: debug, debug-bar, debugging, development, developer, performance, profiler, queries, query monitor, rest-api
4
  Requires at least: 3.7
5
  Tested up to: 5.5
6
+ Stable tag: 3.6.4
7
  License: GPLv2 or later
8
  Requires PHP: 5.3
9
 
113
 
114
  ## Changelog ##
115
 
116
+ ### 3.6.4 ###
117
+
118
+ * Correct an error introduced in 3.6.3 with the extra early error handling (ironic).
119
+
120
  ### 3.6.3 ###
121
 
122
  * Correct the size of the close icon.
460
  * More defensive CSS.
461
  * Fix the size of the expand/contract buttons.
462
  * Avoid showing two unnecessary functions in the call stack for textdomain loading.