Skip to content

Commit 8f53431

Browse files
committed
Merge remote-tracking branch 'upstream/trunk' into trunk
2 parents 2fa3af9 + 265fbb4 commit 8f53431

34 files changed

Lines changed: 1219 additions & 3779 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ wp-tests-config.php
3737
/src/wp-includes/css/*-rtl.css
3838
/src/wp-includes/blocks/*
3939
!/src/wp-includes/blocks/index.php
40+
/src/wp-includes/icons
4041
/src/wp-includes/build
4142
/src/wp-includes/theme.json
4243
/packagehash.txt

Gruntfile.js

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,6 @@ module.exports = function(grunt) {
283283
src: buildFiles.concat( [
284284
'!wp-includes/assets/**', // Assets is extracted into separate copy tasks.
285285
'!js/**', // JavaScript is extracted into separate copy tasks.
286-
'!wp-includes/certificates/cacert.pem*', // Exclude raw root certificate files that are combined into ca-bundle.crt.
287-
'!wp-includes/certificates/legacy-1024bit.pem',
288286
'!.{svn,git}', // Exclude version control folders.
289287
'!wp-includes/version.php', // Exclude version.php.
290288
'!{wp-admin,wp-includes,wp-content/themes/twenty*,wp-content/plugins/akismet}/**/*.map', // The build doesn't need .map files.
@@ -582,7 +580,7 @@ module.exports = function(grunt) {
582580
},
583581
certificates: {
584582
src: 'vendor/composer/ca-bundle/res/cacert.pem',
585-
dest: SOURCE_DIR + 'wp-includes/certificates/cacert.pem'
583+
dest: SOURCE_DIR + 'wp-includes/certificates/ca-bundle.crt'
586584
}
587585
},
588586
sass: {
@@ -1006,16 +1004,6 @@ module.exports = function(grunt) {
10061004
WORKING_DIR + 'wp-includes/js/wp-emoji.min.js'
10071005
],
10081006
dest: WORKING_DIR + 'wp-includes/js/wp-emoji-release.min.js'
1009-
},
1010-
certificates: {
1011-
options: {
1012-
separator: '\n\n'
1013-
},
1014-
src: [
1015-
SOURCE_DIR + 'wp-includes/certificates/legacy-1024bit.pem',
1016-
SOURCE_DIR + 'wp-includes/certificates/cacert.pem'
1017-
],
1018-
dest: SOURCE_DIR + 'wp-includes/certificates/ca-bundle.crt'
10191007
}
10201008
},
10211009
patch:{
@@ -1824,13 +1812,12 @@ module.exports = function(grunt) {
18241812
} );
18251813

18261814
grunt.registerTask( 'build:certificates', [
1827-
'concat:certificates'
1815+
'copy:certificates'
18281816
] );
18291817

18301818
grunt.registerTask( 'certificates:upgrade', [
18311819
'certificates:upgrade-package',
1832-
'copy:certificates',
1833-
'build:certificates'
1820+
'copy:certificates'
18341821
] );
18351822

18361823
grunt.registerTask( 'build:files', [

src/wp-content/themes/twentyfourteen/inc/featured-content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public static function delete_transient() {
212212
* @since Twenty Fourteen 1.0
213213
*
214214
* @param WP_Query $query WP_Query object.
215-
* @return WP_Query Possibly-modified WP_Query.
215+
* @return void
216216
*/
217217
public static function pre_get_posts( $query ) {
218218

src/wp-content/themes/twentytwenty/inc/template-tags.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* @param array $args Arguments for displaying the site logo either as an image or text.
3131
* @param bool $display Display or return the HTML.
32-
* @return string Compiled HTML based on our arguments.
32+
* @return string|void Compiled HTML based on our arguments.
3333
*/
3434
function twentytwenty_site_logo( $args = array(), $display = true ) {
3535
$logo = get_custom_logo();
@@ -107,7 +107,7 @@ function twentytwenty_site_logo( $args = array(), $display = true ) {
107107
* @since Twenty Twenty 1.0
108108
*
109109
* @param bool $display Display or return the HTML.
110-
* @return string The HTML to display.
110+
* @return string|void The HTML to display.
111111
*/
112112
function twentytwenty_site_description( $display = true ) {
113113
$description = get_bloginfo( 'description' );
@@ -249,7 +249,7 @@ function twentytwenty_edit_post_link( $link, $post_id, $text ) {
249249
*
250250
* @param int $post_id The ID of the post.
251251
* @param string $location The location where the meta is shown.
252-
* @return string Post meta HTML.
252+
* @return string|void Post meta HTML.
253253
*/
254254
function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) {
255255

src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ public function __construct() {
3535
public function register( $wp_customize ) {
3636

3737
// Change site-title & description to postMessage.
38-
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; // @phpstan-ignore-line. Assume that this setting exists.
39-
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; // @phpstan-ignore-line. Assume that this setting exists.
38+
foreach ( array( 'blogname', 'blogdescription' ) as $setting_id ) {
39+
$setting = $wp_customize->get_setting( $setting_id );
40+
if ( $setting ) {
41+
$setting->transport = 'postMessage';
42+
}
43+
}
4044

4145
// Add partial for blogname.
4246
$wp_customize->selective_refresh->add_partial(

src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function enqueue_scripts() {
9898
if ( is_rtl() ) {
9999
$url = get_template_directory_uri() . '/assets/css/style-dark-mode-rtl.css';
100100
}
101-
wp_enqueue_style( 'tt1-dark-mode', $url, array( 'twenty-twenty-one-style' ), wp_get_theme()->get( 'Version' ) ); // @phpstan-ignore-line. Version is always a string.
101+
wp_enqueue_style( 'tt1-dark-mode', $url, array( 'twenty-twenty-one-style' ), wp_get_theme()->get( 'Version' ) );
102102
}
103103

104104
/**

src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,18 +181,17 @@ public static function get_svg( $group, $icon, $size ) {
181181
*
182182
* @since Twenty Twenty-One 1.0
183183
*
184-
* @param array $arr Array of icons.
184+
* @param array<string, string> $arr Array of icons.
185185
*/
186186
$arr = apply_filters( "twenty_twenty_one_svg_icons_{$group}", $arr );
187187

188188
$svg = '';
189-
if ( array_key_exists( $icon, $arr ) ) {
189+
if ( isset( $arr[ $icon ] ) && is_string( $arr[ $icon ] ) ) {
190190
$repl = sprintf( '<svg class="svg-icon" width="%d" height="%d" aria-hidden="true" role="img" focusable="false" ', $size, $size );
191191

192-
$svg = preg_replace( '/^<svg /', $repl, trim( $arr[ $icon ] ) ); // Add extra attributes to SVG code.
192+
$svg = (string) preg_replace( '/^<svg /', $repl, trim( $arr[ $icon ] ) ); // Add extra attributes to SVG code.
193193
}
194194

195-
// @phpstan-ignore-next-line.
196195
return $svg;
197196
}
198197

src/wp-content/themes/twentytwentyone/inc/template-functions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,12 +339,12 @@ function twenty_twenty_one_get_non_latin_css( $type = 'front-end' ) {
339339
}
340340

341341
// Return the specified styles.
342-
return twenty_twenty_one_generate_css( // @phpstan-ignore-line.
342+
return twenty_twenty_one_generate_css(
343343
implode( ',', $elements[ $type ] ),
344344
'font-family',
345345
implode( ',', $font_family[ $locale ] ),
346-
null,
347-
null,
346+
'',
347+
'',
348348
false
349349
);
350350
}

src/wp-includes/block-supports/aria-label.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ function wp_apply_aria_label_support( $block_type, $block_attributes ) {
4949
}
5050

5151
$has_aria_label_support = block_has_support( $block_type, array( 'ariaLabel' ), false );
52-
if ( ! $has_aria_label_support ) {
52+
if (
53+
! $has_aria_label_support ||
54+
wp_should_skip_block_supports_serialization( $block_type, 'ariaLabel' )
55+
) {
5356
return array();
5457
}
5558

src/wp-includes/certificates/ca-bundle.crt

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,3 @@
1-
##
2-
## Bundle of CA Root Certificates
3-
##
4-
## WordPress Modification - We prepend some unexpired 'legacy' 1024bit certificates
5-
## for backward compatibility. See https://core.trac.wordpress.org/ticket/34935#comment:10
6-
##
7-
8-
9-
Verisign Class 3 Public Primary Certification Authority
10-
=======================================================
11-
-----BEGIN CERTIFICATE-----
12-
MIICPDCCAaUCEHC65B0Q2Sk0tjjKewPMur8wDQYJKoZIhvcNAQECBQAwXzELMAkGA1UEBhMCVVMx
13-
FzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmltYXJ5
14-
IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk2MDEyOTAwMDAwMFoXDTI4MDgwMTIzNTk1OVow
15-
XzELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAz
16-
IFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUA
17-
A4GNADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhEBarsAx94
18-
f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/isI19wKTakyYbnsZogy1Ol
19-
hec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0GCSqGSIb3DQEBAgUAA4GBALtMEivPLCYA
20-
TxQT3ab7/AoRhIzzKBxnki98tsX63/Dolbwdj2wsqFHMc9ikwFPwTtYmwHYBV4GSXiHx0bH/59Ah
21-
WM1pF+NEHJwZRDmJXNycAA9WjQKZ7aKQRUzkuxCkPfAyAw7xzvjoyVGM5mKf5p/AfbdynMk2Omuf
22-
Tqj/ZA1k
23-
-----END CERTIFICATE-----
24-
25-
Verisign Class 3 Public Primary Certification Authority - G2
26-
============================================================
27-
-----BEGIN CERTIFICATE-----
28-
MIIDAjCCAmsCEH3Z/gfPqB63EHln+6eJNMYwDQYJKoZIhvcNAQEFBQAwgcExCzAJBgNVBAYTAlVT
29-
MRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE8MDoGA1UECxMzQ2xhc3MgMyBQdWJsaWMgUHJpbWFy
30-
eSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcyMTowOAYDVQQLEzEoYykgMTk5OCBWZXJpU2ln
31-
biwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5MR8wHQYDVQQLExZWZXJpU2lnbiBUcnVz
32-
dCBOZXR3b3JrMB4XDTk4MDUxODAwMDAwMFoXDTI4MDgwMTIzNTk1OVowgcExCzAJBgNVBAYTAlVT
33-
MRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE8MDoGA1UECxMzQ2xhc3MgMyBQdWJsaWMgUHJpbWFy
34-
eSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcyMTowOAYDVQQLEzEoYykgMTk5OCBWZXJpU2ln
35-
biwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5MR8wHQYDVQQLExZWZXJpU2lnbiBUcnVz
36-
dCBOZXR3b3JrMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDMXtERXVxp0KvTuWpMmR9ZmDCO
37-
FoUgRm1HP9SFIIThbbP4pO0M8RcPO/mn+SXXwc+EY/J8Y8+iR/LGWzOOZEAEaMGAuWQcRXfH2G71
38-
lSk8UOg013gfqLptQ5GVj0VXXn7F+8qkBOvqlzdUMG+7AUcyM83cV5tkaWH4mx0ciU9cZwIDAQAB
39-
MA0GCSqGSIb3DQEBBQUAA4GBAFFNzb5cy5gZnBWyATl4Lk0PZ3BwmcYQWpSkU01UbSuvDV1Ai2TT
40-
1+7eVmGSX6bEHRBhNtMsJzzoKQm5EWR0zLVznxxIqbxhAe7iF6YM40AIOw7n60RzKprxaZLvcRTD
41-
Oaxxp5EJb+RxBrO6WVcmeQD2+A2iMzAo1KpYoJ2daZH9
42-
-----END CERTIFICATE-----
43-
44-
Verisign Class 3 Public Primary Certification Authority
45-
=======================================================
46-
-----BEGIN CERTIFICATE-----
47-
MIICPDCCAaUCEDyRMcsf9tAbDpq40ES/Er4wDQYJKoZIhvcNAQEFBQAwXzELMAkGA1UEBhMCVVMx
48-
FzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmltYXJ5
49-
IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk2MDEyOTAwMDAwMFoXDTI4MDgwMjIzNTk1OVow
50-
XzELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAz
51-
IFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUA
52-
A4GNADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhEBarsAx94
53-
f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/isI19wKTakyYbnsZogy1Ol
54-
hec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0GCSqGSIb3DQEBBQUAA4GBABByUqkFFBky
55-
CEHwxWsKzH4PIRnN5GfcX6kb5sroc50i2JhucwNhkcV8sEVAbkSdjbCxlnRhLQ2pRdKkkirWmnWX
56-
bj9T/UWZYB2oK0z5XqcJ2HUw19JlYD1n1khVdWk/kfVIC0dpImmClr7JyDiGSnoscxlIaU5rfGW/
57-
D/xwzoiQ
58-
-----END CERTIFICATE-----
59-
60-
611
##
622
## Bundle of CA Root Certificates
633
##

0 commit comments

Comments
 (0)