Skip to content

Commit 963a330

Browse files
authored
Merge pull request #6137 from Automattic/staging
Production release: v20250211.0
2 parents 2477bfa + 3f9ec70 commit 963a330

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1548
-824
lines changed

.github/actions/run-wp-tests/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ runs:
126126
"${PHPUNIT}" ${OPTIONS}
127127
128128
- name: Upload coverage report
129-
uses: codecov/codecov-action@v5.1.2
129+
uses: codecov/codecov-action@v5.3.1
130130
with:
131131
files: ${{ inputs.coverage-file }}
132132
flags: ${{ inputs.coverage-flags }}

.github/workflows/changelog-summary-prod.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
env:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5252

53-
- uses: softprops/[email protected].0
53+
- uses: softprops/[email protected].1
5454
with:
5555
generate_release_notes: true
5656
tag_name: ${{ steps.id-generator.outputs.id }}
@@ -64,7 +64,7 @@ jobs:
6464
uses: actions/[email protected]
6565

6666
- name: Setup PHP
67-
uses: shivammathur/setup-php@2.30.5
67+
uses: shivammathur/setup-php@2.32.0
6868

6969
- name: Install
7070
uses: ramsey/[email protected]

.github/workflows/changelog-summary-staging.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/[email protected]
2020

2121
- name: Setup PHP
22-
uses: shivammathur/setup-php@2.30.5
22+
uses: shivammathur/setup-php@2.32.0
2323

2424
- name: Install
2525
uses: ramsey/[email protected]

.github/workflows/ci.yml

-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ jobs:
2828
matrix:
2929
config:
3030
# PHP 8.1, Jetpack
31-
- { wp: 6.1.x, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' }
32-
- { wp: 6.1.x, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' }
3331
- { wp: 6.2.x, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' }
3432
- { wp: 6.2.x, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' }
3533
- { wp: 6.3.x, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' }

.github/workflows/codeql-analysis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
uses: actions/[email protected]
3333

3434
- name: Initialize CodeQL
35-
uses: github/codeql-action/[email protected].1
35+
uses: github/codeql-action/[email protected].8
3636
with:
3737
languages: ${{ matrix.language }}
3838
config-file: ./.github/codeql-config.yml
3939

4040
- name: Perform CodeQL Analysis
41-
uses: github/codeql-action/[email protected].1
41+
uses: github/codeql-action/[email protected].8

.github/workflows/core-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
cache-dependency-path: 'wordpress/package-lock.json'
7272

7373
- name: Set up PHP
74-
uses: shivammathur/setup-php@2.30.5
74+
uses: shivammathur/setup-php@2.32.0
7575
with:
7676
php-version: 8.0
7777
coverage: none

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/[email protected]
2929

3030
- name: Set up PHP
31-
uses: shivammathur/setup-php@2.30.5
31+
uses: shivammathur/setup-php@2.32.0
3232
with:
3333
coverage: none
3434
env:

__tests__/e2e/package-lock.json

+11-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"phpcompatibility/phpcompatibility-wp": "2.1.6",
66
"erusev/parsedown": "1.7.4",
77
"dms/phpunit-arraysubset-asserts": "0.5.0",
8-
"yoast/phpunit-polyfills": "3.0.0",
8+
"yoast/phpunit-polyfills": "3.1.1",
99
"johnpbloch/wordpress-core": "6.7.1",
1010
"wp-phpunit/wp-phpunit": "6.7.1",
1111
"wp-cli/wp-cli": "2.11.0"

composer.lock

+18-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jetpack.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@
1919
function vip_default_jetpack_version() {
2020
global $wp_version;
2121

22-
if ( version_compare( $wp_version, '6.2', '<' ) ) {
23-
// WordPress 6.1.x
24-
return '12.5';
25-
} elseif ( version_compare( $wp_version, '6.3', '<' ) ) {
22+
if ( version_compare( $wp_version, '6.3', '<' ) ) {
2623
// WordPress 6.2.x.
2724
return '12.8';
2825
} elseif ( version_compare( $wp_version, '6.4', '<' ) ) {

query-monitor/assets/query-monitor.css

+4-2
Original file line numberDiff line numberDiff line change
@@ -1472,13 +1472,15 @@ body.admin-color-light #wp-admin-bar-query-monitor:not(.qm-all-clear):not(:hover
14721472
padding: 0 0 1em 1em !important;
14731473
}
14741474
#qm-fatal li {
1475-
margin: 0 0 0.7em !important;
1476-
list-style: none !important;
1475+
margin: 0 0 0.7em 1em !important;
14771476
}
14781477
#qm-fatal .qm-info {
14791478
/* @TODO */
14801479
color: #666 !important;
14811480
}
1481+
#qm-fatal a.qm-edit-link svg {
1482+
display: none;
1483+
}
14821484

14831485
body#error-page #qm-fatal {
14841486
margin: 0 !important;

query-monitor/classes/Backtrace.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class QM_Backtrace {
133133
* @param array<string, mixed[]> $args
134134
* @param mixed[] $trace
135135
*/
136-
public function __construct( array $args = array(), array $trace = null ) {
136+
public function __construct( array $args = array(), ?array $trace = null ) {
137137
$this->trace = $trace ?? debug_backtrace( 0 );
138138

139139
$this->args = array_merge( array(

query-monitor/classes/CLI.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function enable() {
6060
* @param string $file
6161
* @return self
6262
*/
63-
public static function init( $file = null ) {
63+
public static function init( ?string $file = null ) {
6464

6565
static $instance = null;
6666

query-monitor/classes/Collector_Assets.php

-5
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,6 @@ protected static function get_script_modules(): ?array {
280280
return null;
281281
}
282282

283-
// https://core.trac.wordpress.org/ticket/60596
284-
if ( ! did_action( 'wp_head' ) ) {
285-
return null;
286-
}
287-
288283
$reflector = new ReflectionClass( $modules );
289284

290285
$get_marked_for_enqueue = $reflector->getMethod( 'get_marked_for_enqueue' );

query-monitor/classes/Dispatcher.php

+15
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,21 @@ public function __construct( QM_Plugin $qm ) {
5151
*/
5252
abstract public function is_active();
5353

54+
/**
55+
* @param string $message
56+
* @param mixed[] $e
57+
* @phpstan-param array{
58+
* message: string,
59+
* file: string,
60+
* line: int,
61+
* type?: int,
62+
* trace?: mixed|null,
63+
* } $e
64+
*/
65+
public function output_fatal( $message, array $e ): void {
66+
print_r( $e );
67+
}
68+
5469
/**
5570
* @return bool
5671
*/

query-monitor/classes/QueryMonitor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public function action_cease() {
267267
* @param string $file
268268
* @return self
269269
*/
270-
public static function init( $file = null ) {
270+
public static function init( ?string $file = null ) {
271271

272272
static $instance = null;
273273

query-monitor/classes/Timer.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class QM_Timer {
4646
* @param mixed[] $data
4747
* @return self
4848
*/
49-
public function start( array $data = null ) {
49+
public function start( ?array $data = null ) {
5050
$this->trace = new QM_Backtrace();
5151
$this->start = array(
5252
'time' => microtime( true ),
@@ -60,7 +60,7 @@ public function start( array $data = null ) {
6060
* @param mixed[] $data
6161
* @return self
6262
*/
63-
public function stop( array $data = null ) {
63+
public function stop( ?array $data = null ) {
6464

6565
$this->end = array(
6666
'time' => microtime( true ),
@@ -77,7 +77,7 @@ public function stop( array $data = null ) {
7777
* @param string $name
7878
* @return self
7979
*/
80-
public function lap( array $data = null, $name = null ) {
80+
public function lap( ?array $data = null, ?string $name = null ) {
8181

8282
$lap = array(
8383
'time' => microtime( true ),
@@ -176,7 +176,7 @@ public function get_trace() {
176176
* @param mixed[] $data
177177
* @return self
178178
*/
179-
public function end( array $data = null ) {
179+
public function end( ?array $data = null ) {
180180
return $this->stop( $data );
181181
}
182182

query-monitor/classes/debug_bar.php

+9-5
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,15 @@ public function ensure_ajaxurl() {
6060
$dispatcher = QM_Dispatchers::get( 'html' );
6161

6262
if ( $this->panels && $dispatcher && $dispatcher::user_can_view() ) {
63-
?>
64-
<script type="text/javascript">
65-
var ajaxurl = '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>';
66-
</script>
67-
<?php
63+
wp_print_inline_script_tag(
64+
sprintf(
65+
"var ajaxurl = '%s';",
66+
esc_url_raw( admin_url( 'admin-ajax.php' ) )
67+
),
68+
array(
69+
'id' => 'query-monitor-inline-debug-bar',
70+
)
71+
);
6872
}
6973
}
7074

0 commit comments

Comments
 (0)