Skip to content

Commit b9de99b

Browse files
authored
Merge branch 'WordPress:trunk' into trunk
2 parents cea701a + 812af15 commit b9de99b

41 files changed

Lines changed: 618 additions & 213 deletions

Some content is hidden

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

src/wp-admin/includes/class-wp-list-table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ protected function months_dropdown( $post_type ) {
600600
}
601601

602602
/**
603-
* Filters to short-circuit performing the months dropdown query.
603+
* Filters whether to short-circuit performing the months dropdown query.
604604
*
605605
* @since 5.7.0
606606
*

src/wp-admin/includes/class-wp-ms-users-list-table.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,12 @@ public function column_username( $user ) {
302302
*/
303303
public function column_name( $user ) {
304304
if ( $user->first_name && $user->last_name ) {
305-
echo "$user->first_name $user->last_name";
305+
printf(
306+
/* translators: 1: User's first name, 2: Last name. */
307+
_x( '%1$s %2$s', 'Display name based on first name and last name' ),
308+
$user->first_name,
309+
$user->last_name
310+
);
306311
} elseif ( $user->first_name ) {
307312
echo $user->first_name;
308313
} elseif ( $user->last_name ) {

src/wp-admin/includes/class-wp-screen.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ public function set_current_screen() {
430430
private function __construct() {}
431431

432432
/**
433-
* Indicates whether the screen is in a particular admin
433+
* Indicates whether the screen is in a particular admin.
434434
*
435435
* @since 3.5.0
436436
*
@@ -475,7 +475,7 @@ public static function add_old_compat_help( $screen, $help ) {
475475
}
476476

477477
/**
478-
* Set the parent information for the screen.
478+
* Sets the parent information for the screen.
479479
*
480480
* This is called in admin-header.php after the menu parent for the screen has been determined.
481481
*
@@ -505,7 +505,7 @@ public function add_option( $option, $args = array() ) {
505505
}
506506

507507
/**
508-
* Remove an option from the screen.
508+
* Removes an option from the screen.
509509
*
510510
* @since 3.8.0
511511
*
@@ -516,7 +516,7 @@ public function remove_option( $option ) {
516516
}
517517

518518
/**
519-
* Remove all options from the screen.
519+
* Removes all options from the screen.
520520
*
521521
* @since 3.8.0
522522
*/
@@ -525,7 +525,7 @@ public function remove_options() {
525525
}
526526

527527
/**
528-
* Get the options registered for the screen.
528+
* Gets the options registered for the screen.
529529
*
530530
* @since 3.8.0
531531
*
@@ -606,7 +606,7 @@ public function get_help_tab( $id ) {
606606
}
607607

608608
/**
609-
* Add a help tab to the contextual help for the screen.
609+
* Adds a help tab to the contextual help for the screen.
610610
*
611611
* Call this on the `load-$pagenow` hook for the relevant screen,
612612
* or fetch the `$current_screen` object, or use get_current_screen()
@@ -682,7 +682,7 @@ public function get_help_sidebar() {
682682
}
683683

684684
/**
685-
* Add a sidebar to the contextual help for the screen.
685+
* Adds a sidebar to the contextual help for the screen.
686686
*
687687
* Call this in template files after admin.php is loaded and before admin-header.php is loaded
688688
* to add a sidebar to the contextual help.
@@ -713,7 +713,7 @@ public function get_columns() {
713713
}
714714

715715
/**
716-
* Get the accessible hidden headings and text used in the screen.
716+
* Gets the accessible hidden headings and text used in the screen.
717717
*
718718
* @since 4.4.0
719719
*
@@ -726,7 +726,7 @@ public function get_screen_reader_content() {
726726
}
727727

728728
/**
729-
* Get a screen reader text string.
729+
* Gets a screen reader text string.
730730
*
731731
* @since 4.4.0
732732
*
@@ -741,7 +741,7 @@ public function get_screen_reader_text( $key ) {
741741
}
742742

743743
/**
744-
* Add accessible hidden headings and text for the screen.
744+
* Adds accessible hidden headings and text for the screen.
745745
*
746746
* @since 4.4.0
747747
*
@@ -768,7 +768,7 @@ public function set_screen_reader_content( $content = array() ) {
768768
}
769769

770770
/**
771-
* Remove all the accessible hidden headings and text for the screen.
771+
* Removes all the accessible hidden headings and text for the screen.
772772
*
773773
* @since 4.4.0
774774
*/
@@ -777,7 +777,7 @@ public function remove_screen_reader_content() {
777777
}
778778

779779
/**
780-
* Render the screen's help section.
780+
* Renders the screen's help section.
781781
*
782782
* This will trigger the deprecated filters for backward compatibility.
783783
*
@@ -1034,7 +1034,7 @@ public function show_screen_options() {
10341034
}
10351035

10361036
/**
1037-
* Render the screen options tab.
1037+
* Renders the screen options tab.
10381038
*
10391039
* @since 3.3.0
10401040
*
@@ -1097,7 +1097,7 @@ public function render_screen_options( $options = array() ) {
10971097
}
10981098

10991099
/**
1100-
* Render the meta boxes preferences.
1100+
* Renders the meta boxes preferences.
11011101
*
11021102
* @since 4.4.0
11031103
*
@@ -1140,7 +1140,7 @@ public function render_meta_boxes_preferences() {
11401140
}
11411141

11421142
/**
1143-
* Render the list table columns preferences.
1143+
* Renders the list table columns preferences.
11441144
*
11451145
* @since 4.4.0
11461146
*/
@@ -1188,7 +1188,7 @@ public function render_list_table_columns_preferences() {
11881188
}
11891189

11901190
/**
1191-
* Render the option for number of columns on the page
1191+
* Renders the option for number of columns on the page.
11921192
*
11931193
* @since 3.3.0
11941194
*/
@@ -1220,7 +1220,7 @@ public function render_screen_layout() {
12201220
}
12211221

12221222
/**
1223-
* Render the items per page option
1223+
* Renders the items per page option.
12241224
*
12251225
* @since 3.3.0
12261226
*/
@@ -1284,7 +1284,7 @@ public function render_per_page_options() {
12841284
}
12851285

12861286
/**
1287-
* Render the list table view mode preferences.
1287+
* Renders the list table view mode preferences.
12881288
*
12891289
* @since 4.4.0
12901290
*
@@ -1338,7 +1338,7 @@ public function render_view_mode() {
13381338
}
13391339

13401340
/**
1341-
* Render screen reader text.
1341+
* Renders screen reader text.
13421342
*
13431343
* @since 4.4.0
13441344
*

src/wp-admin/includes/class-wp-users-list-table.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,12 @@ public function single_row( $user_object, $style = '', $role = '', $numposts = 0
568568
break;
569569
case 'name':
570570
if ( $user_object->first_name && $user_object->last_name ) {
571-
$r .= "$user_object->first_name $user_object->last_name";
571+
$r .= sprintf(
572+
/* translators: 1: User's first name, 2: Last name. */
573+
_x( '%1$s %2$s', 'Display name based on first name and last name' ),
574+
$user_object->first_name,
575+
$user_object->last_name
576+
);
572577
} elseif ( $user_object->first_name ) {
573578
$r .= $user_object->first_name;
574579
} elseif ( $user_object->last_name ) {

src/wp-admin/includes/taxonomy.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//
1212

1313
/**
14-
* Check whether a category exists.
14+
* Checks whether a category exists.
1515
*
1616
* @since 2.0.0
1717
*
@@ -30,7 +30,7 @@ function category_exists( $cat_name, $category_parent = null ) {
3030
}
3131

3232
/**
33-
* Get category object for given ID and 'edit' filter context.
33+
* Gets category object for given ID and 'edit' filter context.
3434
*
3535
* @since 2.0.0
3636
*
@@ -44,7 +44,7 @@ function get_category_to_edit( $id ) {
4444
}
4545

4646
/**
47-
* Add a new category to the database if it does not already exist.
47+
* Adds a new category to the database if it does not already exist.
4848
*
4949
* @since 2.0.0
5050
*
@@ -67,7 +67,7 @@ function wp_create_category( $cat_name, $category_parent = 0 ) {
6767
}
6868

6969
/**
70-
* Create categories for the given post.
70+
* Creates categories for the given post.
7171
*
7272
* @since 2.0.0
7373
*
@@ -210,7 +210,7 @@ function wp_update_category( $catarr ) {
210210
//
211211

212212
/**
213-
* Check whether a post tag with a given name exists.
213+
* Checks whether a post tag with a given name exists.
214214
*
215215
* @since 2.3.0
216216
*
@@ -224,7 +224,7 @@ function tag_exists( $tag_name ) {
224224
}
225225

226226
/**
227-
* Add a new tag to the database if it does not already exist.
227+
* Adds a new tag to the database if it does not already exist.
228228
*
229229
* @since 2.3.0
230230
*
@@ -236,7 +236,7 @@ function wp_create_tag( $tag_name ) {
236236
}
237237

238238
/**
239-
* Get comma-separated list of tags available to edit.
239+
* Gets comma-separated list of tags available to edit.
240240
*
241241
* @since 2.3.0
242242
*
@@ -249,7 +249,7 @@ function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) {
249249
}
250250

251251
/**
252-
* Get comma-separated list of terms available to edit for the given post ID.
252+
* Gets comma-separated list of terms available to edit for the given post ID.
253253
*
254254
* @since 2.8.0
255255
*
@@ -298,7 +298,7 @@ function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) {
298298
}
299299

300300
/**
301-
* Add a new term to the database if it does not already exist.
301+
* Adds a new term to the database if it does not already exist.
302302
*
303303
* @since 2.8.0
304304
*

src/wp-content/themes/twentynineteen/style-editor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ figcaption,
10591059
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
10601060
font-size: 0.71111em;
10611061
line-height: 1.6;
1062-
color: #767676;
1062+
color: inherit;
10631063
}
10641064

10651065
/** === Pullquote === */

src/wp-content/themes/twentynineteen/style-editor.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ figcaption,
443443
@include font-family( $font__heading );
444444
font-size: $font__size-xs;
445445
line-height: 1.6;
446-
color: $color__text-light;
446+
color: inherit;
447447
}
448448
}
449449

src/wp-content/themes/twentytwentyone/assets/css/style-editor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,7 @@ pre.wp-block-preformatted {
15611561
}
15621562

15631563
.wp-block-quote .wp-block-quote__citation {
1564-
color: var(--global--color-primary);
1564+
color: currentColor;
15651565
font-size: var(--global--font-size-xs);
15661566
font-style: var(--quote--font-style-cite);
15671567
}

src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/quote/_editor.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424

2525
.wp-block-quote__citation {
26-
color: var(--global--color-primary);
26+
color: currentColor;
2727
font-size: var(--global--font-size-xs);
2828
font-style: var(--quote--font-style-cite);
2929

src/wp-includes/PHPMailer/PHPMailer.php

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ class PHPMailer
750750
*
751751
* @var string
752752
*/
753-
const VERSION = '6.6.0';
753+
const VERSION = '6.6.2';
754754

755755
/**
756756
* Error severity: message only, continue processing.
@@ -1066,18 +1066,20 @@ public function addReplyTo($address, $name = '')
10661066
* Addresses that have been added already return false, but do not throw exceptions.
10671067
*
10681068
* @param string $kind One of 'to', 'cc', 'bcc', or 'ReplyTo'
1069-
* @param string $address The email address to send, resp. to reply to
1070-
* @param string $name
1069+
* @param string $address The email address
1070+
* @param string $name An optional username associated with the address
10711071
*
10721072
* @throws Exception
10731073
*
10741074
* @return bool true on success, false if address already used or invalid in some way
10751075
*/
10761076
protected function addOrEnqueueAnAddress($kind, $address, $name)
10771077
{
1078-
$address = trim($address);
1079-
$name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim
1080-
$pos = strrpos($address, '@');
1078+
$pos = false;
1079+
if ($address !== null) {
1080+
$address = trim($address);
1081+
$pos = strrpos($address, '@');
1082+
}
10811083
if (false === $pos) {
10821084
//At-sign is missing.
10831085
$error_message = sprintf(
@@ -1094,8 +1096,14 @@ protected function addOrEnqueueAnAddress($kind, $address, $name)
10941096

10951097
return false;
10961098
}
1099+
if ($name !== null) {
1100+
$name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim
1101+
} else {
1102+
$name = '';
1103+
}
10971104
$params = [$kind, $address, $name];
10981105
//Enqueue addresses with IDN until we know the PHPMailer::$CharSet.
1106+
//Domain is assumed to be whatever is after the last @ symbol in the address
10991107
if (static::idnSupported() && $this->has8bitChars(substr($address, ++$pos))) {
11001108
if ('Reply-To' !== $kind) {
11011109
if (!array_key_exists($address, $this->RecipientsQueue)) {

0 commit comments

Comments
 (0)