modules/notes.php 1 location
|
@@ 160-165 (lines=6) @@
|
157 |
|
} |
158 |
|
} |
159 |
|
|
160 |
|
if ( class_exists( 'GP_Locales' ) ) { |
161 |
|
$wpcom_locale_object = GP_Locales::by_field( 'wp_locale', $wpcom_locale ); |
162 |
|
if ( $wpcom_locale_object instanceof GP_Locale ) { |
163 |
|
$wpcom_locale = $wpcom_locale_object->slug; |
164 |
|
} |
165 |
|
} |
166 |
|
|
167 |
|
$classes = 'wpnt-loading wpn-read'; |
168 |
|
$wp_admin_bar->add_menu( array( |
modules/widgets/follow-button.php 1 location
|
@@ 42-47 (lines=6) @@
|
39 |
|
} |
40 |
|
} |
41 |
|
|
42 |
|
if ( class_exists( 'GP_Locales' ) ) { |
43 |
|
$wpcom_locale_object = GP_Locales::by_field( 'wp_locale', $wpcom_locale ); |
44 |
|
if ( $wpcom_locale_object instanceof GP_Locale ) { |
45 |
|
$wpcom_locale = $wpcom_locale_object->slug; |
46 |
|
} |
47 |
|
} |
48 |
|
|
49 |
|
if ( empty( $instance['show_name'] ) ) { |
50 |
|
$attributes[] = 'data-show-blog-name="false"'; |
modules/masterbar/masterbar.php 1 location
|
@@ 344-349 (lines=6) @@
|
341 |
|
} |
342 |
|
} |
343 |
|
|
344 |
|
if ( class_exists( 'GP_Locales' ) ) { |
345 |
|
$wpcom_locale_object = GP_Locales::by_field( 'wp_locale', get_locale() ); |
346 |
|
if ( $wpcom_locale_object instanceof GP_Locale ) { |
347 |
|
$wpcom_locale = $wpcom_locale_object->slug; |
348 |
|
} |
349 |
|
} |
350 |
|
|
351 |
|
return $wpcom_locale; |
352 |
|
} |