Skip to content

Commit

Permalink
QM: Update to 3.17.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum committed Feb 6, 2025
1 parent 4b190cb commit 8b5f77e
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 10 deletions.
7 changes: 7 additions & 0 deletions query-monitor/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Security Policy

## How can I report a security bug?

[You can report security bugs through the official Query Monitor Vulnerability Disclosure Program on Patchstack](https://patchstack.com/database/vdp/query-monitor). The Patchstack team helps validate, triage, and handle any security vulnerabilities.

Do not report security issues on GitHub or the WordPress.org support forums. Thank you.
8 changes: 8 additions & 0 deletions query-monitor/assets/query-monitor.css
Original file line number Diff line number Diff line change
Expand Up @@ -1228,6 +1228,7 @@ body.admin-color-light #wp-admin-bar-query-monitor:not(.qm-all-clear):not(:hover
display: none !important;
}
#query-monitor-main .qm-title-heading select,
#query-monitor-main .qm select.qm-select,
#query-monitor-main .qm select.qm-filter {
-webkit-appearance: menulist !important;
-moz-appearance: menulist !important;
Expand All @@ -1249,9 +1250,16 @@ body.admin-color-light #wp-admin-bar-query-monitor:not(.qm-all-clear):not(:hover
#query-monitor-main .qm-title-heading select {
max-width: unset !important;
}
#query-monitor-main .qm select.qm-select:hover,
#query-monitor-main .qm select.qm-filter:hover {
background: var(--qm-cell-bg-hover) !important;
}
#query-monitor-main .qm select.qm-select {
margin: 0 !important;
padding: 4px 10px 4px 4px !important;
border-radius: 2px !important;
max-width: none !important;
}
#query-monitor-main .qm-hide,
#query-monitor-main .qm-hide-scripts-dependencies,
#query-monitor-main .qm-hide-styles-dependencies,
Expand Down
8 changes: 5 additions & 3 deletions query-monitor/dispatchers/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,11 +577,13 @@ protected function after_output() {
echo '<p>' . esc_html__( 'You can set your editor here, so that when you click on stack trace links the file opens in your editor.', 'query-monitor' ) . '</p>';

echo '<p>';
echo '<select id="qm-editor-select" name="qm-editor-select" class="qm-filter">';
echo '<select id="qm-editor-select" name="qm-editor-select" class="qm-select">';

$xdebug_format = ini_get( 'xdebug.file_link_format' );
$default_label = ! empty( $xdebug_format ) ? 'Xdebug format' : 'None';

$editors = array(
'Default/Xdebug' => '',
'Atom' => 'atom',
$default_label => '',
'Netbeans' => 'netbeans',
'Nova' => 'nova',
'PhpStorm' => 'phpstorm',
Expand Down
2 changes: 0 additions & 2 deletions query-monitor/output/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,6 @@ public static function get_editor_file_link_format( $editor, $default_format ) {
return 'phpstorm://open?file=%f&line=%l';
case 'vscode':
return 'vscode://file/%f:%l';
case 'atom':
return 'atom://open/?url=file://%f&line=%l';
case 'sublime':
return 'subl://open/?url=file://%f&line=%l';
case 'textmate':
Expand Down
2 changes: 1 addition & 1 deletion query-monitor/output/html/block_editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public function admin_menu( array $menu ) {
/** @var QM_Data_Block_Editor */
$data = $this->collector->get_data();

if ( empty( $data->block_editor_enabled ) || empty( $data->post_blocks ) ) {
if ( empty( $data->post_blocks ) ) {
return $menu;
}

Expand Down
4 changes: 2 additions & 2 deletions query-monitor/query-monitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* Plugin Name: Query Monitor
* Description: The developer tools panel for WordPress.
* Version: 3.17.1
* Version: 3.17.2
* Plugin URI: https://querymonitor.com/
* Author: John Blackbourn
* Author URI: https://querymonitor.com/
Expand All @@ -36,7 +36,7 @@
exit;
}

define( 'QM_VERSION', '3.17.1' );
define( 'QM_VERSION', '3.17.2' );

// This must be required before vendor/autoload.php so QM can serve its own message about PHP compatibility.
require_once __DIR__ . '/classes/PHP.php';
Expand Down
2 changes: 1 addition & 1 deletion query-monitor/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Contributors: johnbillion
Tags: debug, debug-bar, development, performance, query monitor
Tested up to: 6.7
Stable tag: 3.17.1
Stable tag: 3.17.2
License: GPL v2 or later
Donate link: https://github.com/sponsors/johnbillion

Expand Down
2 changes: 1 addition & 1 deletion query-monitor/wp-content/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Query Monitor Database Class (Drop-in)
* Description: Database drop-in for Query Monitor, the developer tools panel for WordPress.
* Version: 3.17.1
* Version: 3.17.2
* Plugin URI: https://querymonitor.com/
* Author: John Blackbourn
* Author URI: https://querymonitor.com/
Expand Down

0 comments on commit 8b5f77e

Please sign in to comment.