]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/class-wp-locale.php
WordPress 4.7
[autoinstalls/wordpress.git] / wp-includes / class-wp-locale.php
index e8dcfc64882a333e5aba4dbaac823bb5cdb04413..2cc6afaa00d79710ba98889813c0f4c75bb52266 100644 (file)
@@ -59,6 +59,14 @@ class WP_Locale {
         */
        public $month;
 
+       /**
+        * Stores the translated strings for the month names in genitive case, if the locale specifies.
+        *
+        * @since 4.4.0
+        * @var array
+        */
+       public $month_genitive;
+
        /**
         * Stores the translated strings for the abbreviated month names.
         *
@@ -117,7 +125,6 @@ class WP_Locale {
         * @access private
         *
         * @global string $text_direction
-        * @global string $wp_version
         */
        public function init() {
                // The Weekdays
@@ -223,7 +230,7 @@ class WP_Locale {
                elseif ( 'rtl' == _x( 'ltr', 'text direction' ) )
                        $this->text_direction = 'rtl';
 
-               if ( 'rtl' === $this->text_direction && strpos( $GLOBALS['wp_version'], '-src' ) ) {
+               if ( 'rtl' === $this->text_direction && strpos( get_bloginfo( 'version' ), '-src' ) ) {
                        $this->text_direction = 'ltr';
                        add_action( 'all_admin_notices', array( $this, 'rtl_src_admin_notice' ) );
                }