Skip to content

Commit 8900731

Browse files
committed
Merge branch 'develop' into more-conditionals
2 parents 672823b + 9ac0865 commit 8900731

37 files changed

+572
-1754
lines changed

.github/workflows/acceptance-tests.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ on:
3434
- 'package.json'
3535
workflow_dispatch:
3636

37+
permissions:
38+
contents: read
39+
3740
jobs:
3841
test:
3942
name: WP ${{ matrix.wp }} / PHP ${{ matrix.php }}
@@ -43,18 +46,18 @@ jobs:
4346
matrix:
4447
wp:
4548
# Latest three stable:
49+
- '6.5'
4650
- '6.4'
4751
- '6.3'
48-
- '6.2'
4952
php:
5053
- '8.2'
5154
- '7.4'
5255
include:
5356
# Latest stable on PHP 8.3:
54-
- wp: '6.4'
57+
- wp: '6.5'
5558
php: '8.3'
5659
# Oldest supported on PHP 7.4:
57-
- wp: '5.6'
60+
- wp: '5.7'
5861
php: '7.4'
5962
fail-fast: false
6063
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-acceptance-tests.yml@trunk

.github/workflows/build.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,14 @@ on:
55
push:
66
branches:
77
- 'release'
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: write
812

913
jobs:
1014
build:
1115
name: Build
1216
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-build.yml@trunk
13-
master:
14-
name: Push to master
15-
needs: build
16-
runs-on: ubuntu-latest
17-
steps:
18-
- name: Checkout repository
19-
uses: actions/checkout@v3
20-
with:
21-
ref: develop
22-
23-
- name: Push
24-
run: git push origin develop:master
25-
env:
26-
TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
with:
18+
tag: ${{ github.event_name != 'workflow_dispatch' }}

.github/workflows/coding-standards.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ on:
3434
- 'phpstan.neon.dist'
3535
workflow_dispatch:
3636

37+
permissions:
38+
contents: read
39+
3740
jobs:
3841
test:
3942
name: PHP / PHP ${{ matrix.php }}

.github/workflows/deploy-assets.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- deploy
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
wordpress:
1114
name: WordPress.org

.github/workflows/deploy-tag.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,28 @@ name: Deploy Tag
44
on:
55
release:
66
types: [published]
7+
workflow_dispatch:
8+
inputs:
9+
version:
10+
required: true
11+
type: string
12+
description: The version number of the release
713

814
concurrency: WordPress.org
915

16+
permissions:
17+
contents: read
18+
issues: write
19+
1020
jobs:
1121
test:
1222
name: Deploy Tag
1323
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-deploy-tag.yml@trunk
1424
with:
1525
plugin: query-monitor
1626
readme: readme.txt
27+
version: ${{ github.event_name != 'workflow_dispatch' && github.event.release.tag_name || github.event.inputs.version }}
28+
deploy: ${{ github.event_name != 'workflow_dispatch' }}
1729
secrets:
1830
WPORG_SVN_USERNAME: ${{ secrets.WPORG_SVN_USERNAME }}
1931
WPORG_SVN_PASSWORD: ${{ secrets.WPORG_SVN_PASSWORD }}

.github/workflows/integration-tests.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ on:
3434
- 'package.json'
3535
workflow_dispatch:
3636

37+
permissions:
38+
contents: read
39+
3740
jobs:
3841
test:
3942
name: WP ${{ matrix.wp }} / PHP ${{ matrix.php }}
@@ -44,18 +47,18 @@ jobs:
4447
matrix:
4548
wp:
4649
# Latest three stable:
50+
- '6.5'
4751
- '6.4'
4852
- '6.3'
49-
- '6.2'
5053
php:
5154
- '8.2'
5255
- '7.4'
5356
include:
5457
# Latest stable on PHP 8.3:
55-
- wp: '6.4'
58+
- wp: '6.5'
5659
php: '8.3'
5760
# Oldest supported on PHP 7.4:
58-
- wp: '5.6'
61+
- wp: '5.7'
5962
php: '7.4'
6063
fail-fast: false
6164
with:

.github/workflows/nightly-tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name: Nightly Tests
44
on:
55
schedule:
6-
# Once weekly on Thursdays at 05:00 UTC.
6+
# Once daily at 05:00 UTC.
77
#
88
# ┌───────────── minute (0 - 59)
99
# │ ┌────────── hour (0 - 23)
@@ -13,14 +13,17 @@ on:
1313
# │ │ │ │ │
1414
# │ │ │ │ │
1515
# │ │ │ │ │
16-
- cron: '0 5 * * 4'
16+
- cron: '0 5 * * *'
1717
push:
1818
branches:
1919
- 'develop'
2020
paths:
2121
- '.github/workflows/nightly-tests.yml'
2222
workflow_dispatch:
2323

24+
permissions:
25+
contents: read
26+
2427
jobs:
2528
acceptance:
2629
name: Nightly acceptance / PHP ${{ matrix.php }}

CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ If you enjoy using Query Monitor I would greatly appreciate it <a href="https://
1010

1111
## Reporting Security Issues
1212

13-
If you discover a security issue in Query Monitor, please report it to [the security program on HackerOne](https://hackerone.com/johnblackbourn). Do not report security issues on GitHub or the WordPress.org support forums. Thank you.
13+
You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team helps validate, triage, and handle any security vulnerabilities. [Report a security vulnerability here](https://patchstack.com/database/vdp/query-monitor).
14+
15+
Do not report security issues on GitHub or the WordPress.org support forums. Thank you.
1416

1517
## Inclusivity and Code of Conduct
1618

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,12 @@ Filtering queries by component or calling function makes it easy to see which pl
6464
* Shows all enqueued scripts and styles along with their handle, URL, and version
6565
* Shows their dependencies and dependents
6666
* Alerts you to any broken or missing dependencies
67+
* Supports the script modules feature added in WordPress 6.5
6768

6869
### Languages
6970

7071
* Shows you language settings and loaded text domains
71-
* Shows you the requested MO and JSON translation files for each text domain and which ones were loaded
72+
* Shows you the requested MO, JSON, and PHP translation files for each text domain and which ones were loaded
7273

7374
### HTTP API Requests
7475

@@ -230,12 +231,12 @@ On pages that have an especially high number of database queries (in the hundred
230231

231232
### Can I prevent Query Monitor from collecting data during long-running requests?
232233

233-
Yes, if anything calls `do_action( 'qm/cease' )` then Query Monitor will cease operating for the remainder of the page generation. It detaches itself from further data collection, discards any data it's collected so far, and skips the output of its information.
234+
Yes, you can call `do_action( 'qm/cease' )` to instruct Query Monitor to cease operating for the remainder of the page generation. It will detach itself from further data collection, discard any data it's collected so far, and skip the output of its information.
234235

235236
This is useful for long-running operations that perform a very high number of database queries, consume a lot of memory, or otherwise are of no concern to Query Monitor, for example:
236237

237238
* Backing up or restoring your site
238-
* Exporting a large amount of data
239+
* Importing or exporting a large amount of data
239240
* Running security scans
240241

241242
### Are there any add-on plugins for Query Monitor?
@@ -252,17 +253,21 @@ Please use [the issue tracker on Query Monitor's GitHub repo](https://github.com
252253

253254
Yes, the [Altis Developer Tools](https://www.altis-dxp.com/resources/developer-docs/dev-tools/) are built on top of Query Monitor.
254255

255-
### Is Query Monitor available on WordPress.com VIP?
256+
### Is Query Monitor available on WordPress VIP?
256257

257-
Yes, but a user needs to be granted the `view_query_monitor` capability to see Query Monitor even if they're an administrator. [See the WordPress.com VIP documentation for more details](https://docs.wpvip.com/how-tos/enable-query-monitor/).
258+
Yes, but a user needs to be granted the `view_query_monitor` capability to see Query Monitor even if they're an administrator. [See the WordPress VIP documentation for more details](https://docs.wpvip.com/how-tos/enable-query-monitor/).
258259

259260
### I'm using multiple instances of `wpdb`. How do I get my additional instances to show up in Query Monitor?
260261

261262
This feature was removed in version 3.12 as it was rarely used and considerably increased the maintenance burden of Query Monitor itself. Feel free to continue using version 3.11 if you need to make use of this feature.
262263

263264
### Can I click on stack traces to open the file in my editor?
264265

265-
Yes! You can enable this on the Settings panel.
266+
Yes. You can enable this on the Settings panel.
267+
268+
### How can I report a security bug?
269+
270+
You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team helps validate, triage, and handle any security vulnerabilities. [Report a security vulnerability here](https://patchstack.com/database/vdp/query-monitor).
266271

267272
### Do you accept donations?
268273

@@ -295,6 +300,7 @@ Debugging is rarely done with just one tool. Along with Query Monitor you should
295300
* [Debug This](https://wordpress.org/plugins/debug-this/)
296301
* [Decalog](https://wordpress.org/plugins/decalog/)
297302
* [Laps](https://github.com/Rarst/laps)
303+
* [Log HTTP Requests](https://wordpress.org/plugins/log-http-requests/)
298304
* [Rewrite Rules Inspector](https://wordpress.org/plugins/rewrite-rules-inspector/)
299305
* [Time Stack](https://github.com/joehoyle/Time-Stack)
300306
* [User Switching](https://wordpress.org/plugins/user-switching/)
@@ -321,7 +327,7 @@ See also my list of [WordPress Developer Plugins](https://johnblackbourn.com/wor
321327
* [Xdebug](https://xdebug.org/)
322328
* [XHProf](https://tideways.com/profiler/xhprof-for-php7)
323329
* [Wonolog](https://github.com/inpsyde/Wonolog)
324-
* [WP-CLI profile command](https://developer.wordpress.org/cli/commands/profile/)
330+
* [WP-CLI `profile` command](https://developer.wordpress.org/cli/commands/profile/)
325331

326332
### Hosted services
327333

SECURITY.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Security Policy
22

3-
## Reporting a Vulnerability
3+
### How can I report a security bug?
44

5-
If you discover a security issue in Query Monitor, please report it to [the security program on HackerOne](https://hackerone.com/johnblackbourn). Do not report security issues on GitHub or the WordPress.org support forums. Thank you.
5+
You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team helps validate, triage, and handle any security vulnerabilities. [Report a security vulnerability here](https://patchstack.com/database/vdp/query-monitor).
6+
7+
Do not report security issues on GitHub or the WordPress.org support forums. Thank you.

classes/CLI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function enable() {
3131
if ( file_exists( $drop_in ) ) {
3232
$contents = file_get_contents( $drop_in );
3333

34-
if ( false !== $contents && false !== strpos( $contents, 'class QM_DB' ) ) {
34+
if ( false !== $contents && false !== strpos( $contents, 'new QM_DB' ) ) {
3535
WP_CLI::success( "Query Monitor's wp-content/db.php is already in place" );
3636
exit( 0 );
3737
} else {

0 commit comments

Comments
 (0)