modules/notes.php 1 location
|
@@ 161-165 (lines=5) @@
|
158 |
|
|
159 |
|
$wpcom_locale = get_locale(); |
160 |
|
|
161 |
|
if ( !class_exists( 'GP_Locales' ) ) { |
162 |
|
if ( defined( 'JETPACK__GLOTPRESS_LOCALES_PATH' ) && file_exists( JETPACK__GLOTPRESS_LOCALES_PATH ) ) { |
163 |
|
require JETPACK__GLOTPRESS_LOCALES_PATH; |
164 |
|
} |
165 |
|
} |
166 |
|
|
167 |
|
if ( class_exists( 'GP_Locales' ) ) { |
168 |
|
$wpcom_locale_object = GP_Locales::by_field( 'wp_locale', get_locale() ); |
modules/widgets/facebook-likebox.php 1 location
|
@@ 278-284 (lines=7) @@
|
275 |
|
return 'en_US'; |
276 |
|
} |
277 |
|
|
278 |
|
if ( !class_exists( 'GP_Locales' ) ) { |
279 |
|
if ( !defined( 'JETPACK__GLOTPRESS_LOCALES_PATH' ) || !file_exists( JETPACK__GLOTPRESS_LOCALES_PATH ) ) { |
280 |
|
return false; |
281 |
|
} |
282 |
|
|
283 |
|
require JETPACK__GLOTPRESS_LOCALES_PATH; |
284 |
|
} |
285 |
|
|
286 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
287 |
|
// WP.com: get_locale() returns 'it' |
modules/sharedaddy/sharing-sources.php 1 location
|
@@ 873-879 (lines=7) @@
|
870 |
|
return 'en_US'; |
871 |
|
} |
872 |
|
|
873 |
|
if ( !class_exists( 'GP_Locales' ) ) { |
874 |
|
if ( !defined( 'JETPACK__GLOTPRESS_LOCALES_PATH' ) || !file_exists( JETPACK__GLOTPRESS_LOCALES_PATH ) ) { |
875 |
|
return false; |
876 |
|
} |
877 |
|
|
878 |
|
require JETPACK__GLOTPRESS_LOCALES_PATH; |
879 |
|
} |
880 |
|
|
881 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
882 |
|
// WP.com: get_locale() returns 'it' |