Query Monitor - Version 3.2.1

Version Description

Download this release

Release Info

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

Code changes from version 3.2.0 to 3.2.1

Files changed (3) hide show
  1. collectors/block_editor.php +7 -3
  2. query-monitor.php +1 -1
  3. readme.txt +5 -1
collectors/block_editor.php CHANGED
@@ -20,13 +20,13 @@ class QM_Collector_Block_Editor extends QM_Collector {
20
  return;
21
  }
22
 
23
- $block_type_registry = WP_Block_Type_Registry::get_instance();
24
-
25
  $this->data['post_has_blocks'] = self::wp_has_blocks( get_post()->post_content );
26
  $this->data['post_blocks'] = self::wp_parse_blocks( get_post()->post_content );
27
  $this->data['all_dynamic_blocks'] = self::wp_get_dynamic_block_names();
28
 
29
  if ( $this->data['post_has_blocks'] ) {
 
 
30
  foreach ( $this->data['post_blocks'] as $i => $block ) {
31
  $block_type = $block_type_registry->get_registered( $block['blockName'] );
32
  $dynamic = false;
@@ -70,7 +70,11 @@ class QM_Collector_Block_Editor extends QM_Collector {
70
  }
71
 
72
  protected static function wp_get_dynamic_block_names() {
73
- return get_dynamic_block_names();
 
 
 
 
74
  }
75
 
76
  }
20
  return;
21
  }
22
 
 
 
23
  $this->data['post_has_blocks'] = self::wp_has_blocks( get_post()->post_content );
24
  $this->data['post_blocks'] = self::wp_parse_blocks( get_post()->post_content );
25
  $this->data['all_dynamic_blocks'] = self::wp_get_dynamic_block_names();
26
 
27
  if ( $this->data['post_has_blocks'] ) {
28
+ $block_type_registry = WP_Block_Type_Registry::get_instance();
29
+
30
  foreach ( $this->data['post_blocks'] as $i => $block ) {
31
  $block_type = $block_type_registry->get_registered( $block['blockName'] );
32
  $dynamic = false;
70
  }
71
 
72
  protected static function wp_get_dynamic_block_names() {
73
+ if ( function_exists( 'get_dynamic_block_names' ) ) {
74
+ return get_dynamic_block_names();
75
+ }
76
+
77
+ return array();
78
  }
79
 
80
  }
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.2.0
14
  * Plugin URI: https://querymonitor.com/
15
  * Author: John Blackbourn & contributors
16
  * Author URI: https://querymonitor.com/
10
  *
11
  * Plugin Name: Query Monitor
12
  * Description: The Developer Tools Panel for WordPress.
13
+ * Version: 3.2.1
14
  * Plugin URI: https://querymonitor.com/
15
  * Author: John Blackbourn & contributors
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.0
6
- Stable tag: 3.2.0
7
  License: GPLv2 or later
8
  Requires PHP: 5.3
9
 
@@ -47,6 +47,10 @@ Filtering queries by component or calling function makes it easy to see which pl
47
  * PHP errors (warnings, notices, stricts, and deprecated) are presented nicely along with their component and call stack
48
  * Shows an easily visible warning in the admin toolbar
49
 
 
 
 
 
50
  = Request =
51
 
52
  * Shows query vars for the current request, and highlights custom query vars
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.0
6
+ Stable tag: 3.2.1
7
  License: GPLv2 or later
8
  Requires PHP: 5.3
9
 
47
  * PHP errors (warnings, notices, stricts, and deprecated) are presented nicely along with their component and call stack
48
  * Shows an easily visible warning in the admin toolbar
49
 
50
+ = Block Content =
51
+
52
+ * Post content blocks and associated information (when using WordPress 5.0+ or the Gutenberg plugin)
53
+
54
  = Request =
55
 
56
  * Shows query vars for the current request, and highlights custom query vars