modules/notes.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 139-143 (lines=5) @@ | 
                                                            
                                    | 136 |  |  | 
                                                            
                                    | 137 |  | 		$wpcom_locale = get_locale(); | 
                                                            
                                    | 138 |  |  | 
                                                            
                                    | 139 |  | 		if ( !class_exists( 'GP_Locales' ) ) { | 
                                                            
                                    | 140 |  | 			if ( defined( 'JETPACK__GLOTPRESS_LOCALES_PATH' ) && file_exists( JETPACK__GLOTPRESS_LOCALES_PATH ) ) { | 
                                                            
                                    | 141 |  | 				require JETPACK__GLOTPRESS_LOCALES_PATH; | 
                                                            
                                    | 142 |  | 			} | 
                                                            
                                    | 143 |  | 		} | 
                                                            
                                    | 144 |  |  | 
                                                            
                                    | 145 |  | 		if ( class_exists( 'GP_Locales' ) ) { | 
                                                            
                                    | 146 |  | 			$wpcom_locale_object = GP_Locales::by_field( 'wp_locale', $wpcom_locale ); | 
                                                                        
                 
                                                            
                    
modules/widgets/follow-button.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 31-35 (lines=5) @@ | 
                                                            
                                    | 28 |  |  | 
                                                            
                                    | 29 |  | 		$wpcom_locale = get_locale(); | 
                                                            
                                    | 30 |  |  | 
                                                            
                                    | 31 |  | 		if ( ! class_exists( 'GP_Locales' ) ) { | 
                                                            
                                    | 32 |  | 			if ( defined( 'JETPACK__GLOTPRESS_LOCALES_PATH' ) && file_exists( JETPACK__GLOTPRESS_LOCALES_PATH ) ) { | 
                                                            
                                    | 33 |  | 				require JETPACK__GLOTPRESS_LOCALES_PATH; | 
                                                            
                                    | 34 |  | 			} | 
                                                            
                                    | 35 |  | 		} | 
                                                            
                                    | 36 |  |  | 
                                                            
                                    | 37 |  | 		if ( class_exists( 'GP_Locales' ) ) { | 
                                                            
                                    | 38 |  | 			$wpcom_locale_object = GP_Locales::by_field( 'wp_locale', $wpcom_locale ); | 
                                                                        
                 
                                                            
                    
modules/sharedaddy/sharing-sources.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 898-904 (lines=7) @@ | 
                                                            
                                    | 895 |  | 			return 'en_US'; | 
                                                            
                                    | 896 |  | 		} | 
                                                            
                                    | 897 |  |  | 
                                                            
                                    | 898 |  | 		if ( ! class_exists( 'GP_Locales' ) ) { | 
                                                            
                                    | 899 |  | 			if ( ! defined( 'JETPACK__GLOTPRESS_LOCALES_PATH' ) || ! file_exists( JETPACK__GLOTPRESS_LOCALES_PATH ) ) { | 
                                                            
                                    | 900 |  | 				return false; | 
                                                            
                                    | 901 |  | 			} | 
                                                            
                                    | 902 |  |  | 
                                                            
                                    | 903 |  | 			require JETPACK__GLOTPRESS_LOCALES_PATH; | 
                                                            
                                    | 904 |  | 		} | 
                                                            
                                    | 905 |  |  | 
                                                            
                                    | 906 |  | 		if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { | 
                                                            
                                    | 907 |  | 			// WP.com: get_locale() returns 'it' | 
                                                                        
                 
                                                            
                    
class.jetpack.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 819-825 (lines=7) @@ | 
                                                            
                                    | 816 |  | 			return 'en_US'; | 
                                                            
                                    | 817 |  | 		} | 
                                                            
                                    | 818 |  |  | 
                                                            
                                    | 819 |  | 		if ( ! class_exists( 'GP_Locales' ) ) { | 
                                                            
                                    | 820 |  | 			if ( ! defined( 'JETPACK__GLOTPRESS_LOCALES_PATH' ) || ! file_exists( JETPACK__GLOTPRESS_LOCALES_PATH ) ) { | 
                                                            
                                    | 821 |  | 				return false; | 
                                                            
                                    | 822 |  | 			} | 
                                                            
                                    | 823 |  |  | 
                                                            
                                    | 824 |  | 			require JETPACK__GLOTPRESS_LOCALES_PATH; | 
                                                            
                                    | 825 |  | 		} | 
                                                            
                                    | 826 |  |  | 
                                                            
                                    | 827 |  | 		if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { | 
                                                            
                                    | 828 |  | 			// WP.com: get_locale() returns 'it' |