I18N: In wp_maybe_decline_date()
, bail early if translation functions are not available, e.g. in SHORTINIT
mode.
Fixes #34967 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@35880 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d1b6832295
commit
bbce167f29
@ -172,6 +172,11 @@ function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) {
|
|||||||
function wp_maybe_decline_date( $date ) {
|
function wp_maybe_decline_date( $date ) {
|
||||||
global $wp_locale;
|
global $wp_locale;
|
||||||
|
|
||||||
|
// i18n functions are not available in SHORTINIT mode
|
||||||
|
if ( ! function_exists( '_x' ) ) {
|
||||||
|
return $date;
|
||||||
|
}
|
||||||
|
|
||||||
/* translators: If months in your language require a genitive case,
|
/* translators: If months in your language require a genitive case,
|
||||||
* translate this to 'on'. Do not translate into your own language.
|
* translate this to 'on'. Do not translate into your own language.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user