]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/functions.php
WordPress 4.4.1
[autoinstalls/wordpress.git] / wp-includes / functions.php
index e3fb35317c9533226c1e70d1e312382c484cd9d6..b3781639e267b3d4ba6f9cb028c9d2e71eca97ad 100644 (file)
@@ -172,6 +172,11 @@ function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) {
 function wp_maybe_decline_date( $date ) {
        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,
         * translate this to 'on'. Do not translate into your own language.
         */