Bootstrap/Load: Finalize recovery mode email language.
Props TimothyBlynJacobs, miss_jwo, desrosj. Fixes #46898. git-svn-id: https://develop.svn.wordpress.org/trunk@45181 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f627138361
commit
b7c8eb8bcb
@ -125,26 +125,27 @@ final class WP_Recovery_Mode_Email_Service {
|
|||||||
$message = __(
|
$message = __(
|
||||||
'Howdy,
|
'Howdy,
|
||||||
|
|
||||||
Your site recently crashed on ###LOCATION### and may not be working as expected.
|
Your site recently crashed and may not be working as expected.
|
||||||
###CAUSE###
|
###CAUSE###
|
||||||
Click the link below to initiate recovery mode and fix the problem.
|
Please click the link below to initiate recovery mode and fix the problem.
|
||||||
|
|
||||||
This link expires in ###EXPIRES###.
|
This link expires in ###EXPIRES###.
|
||||||
|
|
||||||
###LINK### ###DETAILS###
|
###LINK### ###DETAILS###
|
||||||
|
|
||||||
|
--The WordPress Team
|
||||||
|
https://wordpress.org/
|
||||||
'
|
'
|
||||||
);
|
);
|
||||||
$message = str_replace(
|
$message = str_replace(
|
||||||
array(
|
array(
|
||||||
'###LINK###',
|
'###LINK###',
|
||||||
'###LOCATION###',
|
|
||||||
'###EXPIRES###',
|
'###EXPIRES###',
|
||||||
'###CAUSE###',
|
'###CAUSE###',
|
||||||
'###DETAILS###',
|
'###DETAILS###',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
$url,
|
$url,
|
||||||
'TBD',
|
|
||||||
human_time_diff( time() + $rate_limit ),
|
human_time_diff( time() + $rate_limit ),
|
||||||
$cause ? "\n{$cause}\n" : "\n",
|
$cause ? "\n{$cause}\n" : "\n",
|
||||||
$details,
|
$details,
|
||||||
@ -235,13 +236,13 @@ This link expires in ###EXPIRES###.
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* translators: %s: plugin name */
|
/* translators: %s: plugin name */
|
||||||
$cause = sprintf( __( 'This was caused by the %s plugin.' ), $name );
|
$cause = sprintf( __( 'This was caused by the following plugin: %s.' ), $name );
|
||||||
} else {
|
} else {
|
||||||
$theme = wp_get_theme( $extension['slug'] );
|
$theme = wp_get_theme( $extension['slug'] );
|
||||||
$name = $theme->exists() ? $theme->display( 'Name' ) : $extension['slug'];
|
$name = $theme->exists() ? $theme->display( 'Name' ) : $extension['slug'];
|
||||||
|
|
||||||
/* translators: %s: theme name */
|
/* translators: %s: theme name */
|
||||||
$cause = sprintf( __( 'This was caused by the %s theme.' ), $name );
|
$cause = sprintf( __( 'This was caused by the following theme: %s.' ), $name );
|
||||||
}
|
}
|
||||||
|
|
||||||
return $cause;
|
return $cause;
|
||||||
|
Loading…
Reference in New Issue
Block a user