Version Description
Download this release
Release Info
Developer | johnbillion |
Plugin | Query Monitor |
Version | 3.5.1 |
Comparing to | |
See all releases |
Code changes from version 3.5.0 to 3.5.1
- collectors/languages.php +9 -2
- output/html/php_errors.php +11 -2
- query-monitor.php +1 -1
- readme.txt +1 -1
collectors/languages.php
CHANGED
@@ -62,6 +62,12 @@ class QM_Collector_Languages extends QM_Collector {
|
|
62 |
$this->data['locale'] = get_locale();
|
63 |
$this->data['user_locale'] = function_exists( 'get_user_locale' ) ? get_user_locale() : get_locale();
|
64 |
ksort( $this->data['languages'] );
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
}
|
66 |
|
67 |
/**
|
@@ -120,7 +126,6 @@ class QM_Collector_Languages extends QM_Collector {
|
|
120 |
'domain' => $domain,
|
121 |
'file' => $mofile,
|
122 |
'found' => $found,
|
123 |
-
'found_formatted' => $found ? size_format( $found ) : '',
|
124 |
'handle' => null,
|
125 |
'type' => 'gettext',
|
126 |
);
|
@@ -143,11 +148,13 @@ class QM_Collector_Languages extends QM_Collector {
|
|
143 |
$filtered = $trace->get_filtered_trace();
|
144 |
$caller = $filtered[0];
|
145 |
|
|
|
|
|
146 |
$this->data['languages'][ $domain ][] = array(
|
147 |
'caller' => $caller,
|
148 |
'domain' => $domain,
|
149 |
'file' => $file,
|
150 |
-
'found' =>
|
151 |
'handle' => $handle,
|
152 |
'type' => 'jed',
|
153 |
);
|
62 |
$this->data['locale'] = get_locale();
|
63 |
$this->data['user_locale'] = function_exists( 'get_user_locale' ) ? get_user_locale() : get_locale();
|
64 |
ksort( $this->data['languages'] );
|
65 |
+
|
66 |
+
foreach ( $this->data['languages'] as & $mofiles ) {
|
67 |
+
foreach ( $mofiles as & $mofile ) {
|
68 |
+
$mofile['found_formatted'] = $mofile['found'] ? size_format( $mofile['found'] ) : '';
|
69 |
+
}
|
70 |
+
}
|
71 |
}
|
72 |
|
73 |
/**
|
126 |
'domain' => $domain,
|
127 |
'file' => $mofile,
|
128 |
'found' => $found,
|
|
|
129 |
'handle' => null,
|
130 |
'type' => 'gettext',
|
131 |
);
|
148 |
$filtered = $trace->get_filtered_trace();
|
149 |
$caller = $filtered[0];
|
150 |
|
151 |
+
$found = ( $file && file_exists( $file ) ) ? filesize( $file ) : false;
|
152 |
+
|
153 |
$this->data['languages'][ $domain ][] = array(
|
154 |
'caller' => $caller,
|
155 |
'domain' => $domain,
|
156 |
'file' => $file,
|
157 |
+
'found' => $found,
|
158 |
'handle' => $handle,
|
159 |
'type' => 'jed',
|
160 |
);
|
output/html/php_errors.php
CHANGED
@@ -261,9 +261,18 @@ class QM_Output_Html_PHP_Errors extends QM_Output_Html {
|
|
261 |
|
262 |
$data = $this->collector->get_data();
|
263 |
$count = 0;
|
|
|
|
|
|
|
|
|
|
|
264 |
|
265 |
-
foreach ( $
|
266 |
-
|
|
|
|
|
|
|
|
|
267 |
}
|
268 |
|
269 |
$menu[ $this->collector->id() ]['title'] = esc_html( sprintf(
|
261 |
|
262 |
$data = $this->collector->get_data();
|
263 |
$count = 0;
|
264 |
+
$types = array(
|
265 |
+
'suppressed',
|
266 |
+
'silenced',
|
267 |
+
'errors',
|
268 |
+
);
|
269 |
|
270 |
+
foreach ( $types as $type ) {
|
271 |
+
if ( ! empty( $data[ $type ] ) ) {
|
272 |
+
foreach ( $data[ $type ] as $errors ) {
|
273 |
+
$count += array_sum( wp_list_pluck( $errors, 'calls' ) );
|
274 |
+
}
|
275 |
+
}
|
276 |
}
|
277 |
|
278 |
$menu[ $this->collector->id() ]['title'] = esc_html( sprintf(
|
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.5.
|
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.5.1
|
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.3
|
6 |
-
Stable tag: 3.5.
|
7 |
License: GPLv2 or later
|
8 |
Requires PHP: 5.3
|
9 |
|
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.3
|
6 |
+
Stable tag: 3.5.1
|
7 |
License: GPLv2 or later
|
8 |
Requires PHP: 5.3
|
9 |
|