Skip to content

Commit 7658328

Browse files
authored
Merge branch 'trunk' into fix/65466-space-separated-tokens
2 parents d8c2af6 + b3ddd57 commit 7658328

110 files changed

Lines changed: 1728 additions & 735 deletions

File tree

Some content is hidden

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

‎phpstan.neon.dist‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ includes:
3434
- tests/phpstan/baselines/booleanNot.alwaysTrue.neon
3535
- tests/phpstan/baselines/booleanOr.alwaysFalse.neon
3636
- tests/phpstan/baselines/booleanOr.alwaysTrue.neon
37-
- tests/phpstan/baselines/booleanOr.rightAlwaysTrue.neon
3837
- tests/phpstan/baselines/catch.neverThrown.neon
3938
- tests/phpstan/baselines/class.notFound.neon
4039
- tests/phpstan/baselines/deadCode.unreachable.neon

‎src/wp-admin/includes/image.php‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,10 +1083,15 @@ function wp_read_image_metadata( $file ) {
10831083
* @since 7.0.0
10841084
*
10851085
* @param string $file File path to the image.
1086-
* @return string Embedded alternative text.
1086+
* @return string Embedded alternative text, empty when there is no alt text or DOM extension is not installed.
10871087
*/
10881088
function wp_get_image_alttext( $file ) {
1089-
$alt_text = '';
1089+
$alt_text = '';
1090+
1091+
if ( ! class_exists( 'DOMDocument', false ) ) {
1092+
return $alt_text;
1093+
}
1094+
10901095
$img_contents = file_get_contents( $file );
10911096

10921097
if ( false === $img_contents ) {

‎src/wp-admin/user-edit.php‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -890,9 +890,10 @@
890890
<p>
891891
<?php
892892
printf(
893-
/* translators: %s: Documentation URL. */
894-
__( 'If this is a development website, you can <a href="%s">set the environment type accordingly</a> to enable application passwords.' ),
895-
__( 'https://developer.wordpress.org/apis/wp-config-php/#wp-environment-type' )
893+
/* translators: 1: Documentation URL, 2: local */
894+
__( 'If this is a local website, you can <a href="%1$s">set the environment type</a> as %2$s to enable application passwords.' ),
895+
__( 'https://developer.wordpress.org/apis/wp-config-php/#wp-environment-type' ),
896+
'<code>local</code>'
896897
);
897898
?>
898899
</p>

‎src/wp-content/themes/twentyeleven/editor-blocks.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Description: Used to style blocks in the editor.
7878
}
7979

8080
.wp-block {
81-
max-width: 614px; /* 584px + 30px to account for padding */
81+
max-width: 584px;
8282
}
8383

8484
/* Link styles */

‎src/wp-content/themes/twentyfifteen/css/editor-blocks.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ Description: Used to style blocks in the editor.
336336
}
337337

338338
.wp-block {
339-
max-width: 690px; /* 660px + 30px to account for padding. */
339+
max-width: 660px;
340340
}
341341

342342
/* Link styles */

‎src/wp-content/themes/twentyfourteen/css/editor-blocks.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Description: Used to style blocks in the editor.
7575
/* Main column width */
7676

7777
.wp-block {
78-
max-width: 504px; /* 474px + 30px to account for padding */
78+
max-width: 474px;
7979
}
8080

8181
/* Link styles */

‎src/wp-content/themes/twentysixteen/css/editor-blocks.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Description: Used to style blocks in the editor.
182182
}
183183

184184
.wp-block {
185-
max-width: 630px; /* 600px + 30px to account for padding. */
185+
max-width: 600px;
186186
}
187187

188188
/* Link styles */

‎src/wp-content/themes/twentyten/editor-blocks.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Description: Used to style blocks in the editor.
7777
/* Main column width */
7878

7979
.wp-block {
80-
max-width: 670px; /* 640px + 30px to account for padding */
80+
max-width: 640px;
8181
}
8282

8383
/* Link styles */

‎src/wp-content/themes/twentythirteen/css/editor-blocks.css‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Description: Used to style blocks in the editor.
5656
/* Main content width */
5757

5858
.wp-block {
59-
max-width: 634px; /* 604px + 30px to account for padding */
59+
max-width: 604px;
6060
}
6161

6262
.wp-block.alignwide,
@@ -382,7 +382,7 @@ p.has-drop-cap:not(:focus)::first-letter {
382382
.wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block,
383383
[data-align="wide"] .wp-block,
384384
[data-align="full"] .wp-block {
385-
max-width: 634px;
385+
max-width: 604px;
386386
}
387387

388388
.wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="wide"] {

‎src/wp-content/themes/twentytwelve/css/editor-blocks.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Description: Used to style blocks in the editor.
7676
/* Main column width */
7777

7878
.wp-block {
79-
max-width: 655px; /* 625px + 30px for padding */
79+
max-width: 625px;
8080
}
8181

8282
/* Link styles */

0 commit comments

Comments
 (0)