I18N: Mark the strings with plugin and theme names in email notifications for translation.
Follow-up to [48517]. See #50350. Built from https://develop.svn.wordpress.org/trunk@48519 git-svn-id: http://core.svn.wordpress.org/trunk@48281 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c2639c74ff
commit
82ce41ff51
|
@ -1045,7 +1045,12 @@ class WP_Automatic_Updater {
|
||||||
$body[] = __( 'These plugins failed to update:' );
|
$body[] = __( 'These plugins failed to update:' );
|
||||||
|
|
||||||
foreach ( $failed_updates['plugin'] as $item ) {
|
foreach ( $failed_updates['plugin'] as $item ) {
|
||||||
$body[] = "- {$item->name} version {$item->item->new_version}";
|
$body[] = sprintf(
|
||||||
|
/* translators: 1: Plugin name, 2: Version number. */
|
||||||
|
__( '- %1$s version %2$s' ),
|
||||||
|
$item->name,
|
||||||
|
$item->item->new_version
|
||||||
|
);
|
||||||
|
|
||||||
$past_failure_emails[ $item->item->plugin ] = $item->item->new_version;
|
$past_failure_emails[ $item->item->plugin ] = $item->item->new_version;
|
||||||
}
|
}
|
||||||
|
@ -1058,7 +1063,12 @@ class WP_Automatic_Updater {
|
||||||
$body[] = __( 'These themes failed to update:' );
|
$body[] = __( 'These themes failed to update:' );
|
||||||
|
|
||||||
foreach ( $failed_updates['theme'] as $item ) {
|
foreach ( $failed_updates['theme'] as $item ) {
|
||||||
$body[] = "- {$item->name} version {$item->item->new_version}";
|
$body[] = sprintf(
|
||||||
|
/* translators: 1: Theme name, 2: Version number. */
|
||||||
|
__( '- %1$s version %2$s' ),
|
||||||
|
$item->name,
|
||||||
|
$item->item->new_version
|
||||||
|
);
|
||||||
|
|
||||||
$past_failure_emails[ $item->item->theme ] = $item->item->new_version;
|
$past_failure_emails[ $item->item->theme ] = $item->item->new_version;
|
||||||
}
|
}
|
||||||
|
@ -1076,7 +1086,12 @@ class WP_Automatic_Updater {
|
||||||
$body[] = __( 'These plugins are now up to date:' );
|
$body[] = __( 'These plugins are now up to date:' );
|
||||||
|
|
||||||
foreach ( $successful_updates['plugin'] as $item ) {
|
foreach ( $successful_updates['plugin'] as $item ) {
|
||||||
$body[] = "- {$item->name} version {$item->item->new_version}";
|
$body[] = sprintf(
|
||||||
|
/* translators: 1: Plugin name, 2: Version number. */
|
||||||
|
__( '- %1$s version %2$s' ),
|
||||||
|
$item->name,
|
||||||
|
$item->item->new_version
|
||||||
|
);
|
||||||
|
|
||||||
unset( $past_failure_emails[ $item->item->plugin ] );
|
unset( $past_failure_emails[ $item->item->plugin ] );
|
||||||
}
|
}
|
||||||
|
@ -1089,7 +1104,12 @@ class WP_Automatic_Updater {
|
||||||
$body[] = __( 'These themes are now up to date:' );
|
$body[] = __( 'These themes are now up to date:' );
|
||||||
|
|
||||||
foreach ( $successful_updates['theme'] as $item ) {
|
foreach ( $successful_updates['theme'] as $item ) {
|
||||||
$body[] = "- {$item->name} version {$item->item->new_version}";
|
$body[] = sprintf(
|
||||||
|
/* translators: 1: Theme name, 2: Version number. */
|
||||||
|
__( '- %1$s version %2$s' ),
|
||||||
|
$item->name,
|
||||||
|
$item->item->new_version
|
||||||
|
);
|
||||||
|
|
||||||
unset( $past_failure_emails[ $item->item->theme ] );
|
unset( $past_failure_emails[ $item->item->theme ] );
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.5-beta2-48518';
|
$wp_version = '5.5-beta2-48519';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue