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
|
@@ 304-309 (lines=6) @@
|
301 |
|
} |
302 |
|
} |
303 |
|
|
304 |
|
if ( class_exists( 'GP_Locales' ) ) { |
305 |
|
$wpcom_locale_object = GP_Locales::by_field( 'wp_locale', get_locale() ); |
306 |
|
if ( $wpcom_locale_object instanceof GP_Locale ) { |
307 |
|
$wpcom_locale = $wpcom_locale_object->slug; |
308 |
|
} |
309 |
|
} |
310 |
|
|
311 |
|
return $wpcom_locale; |
312 |
|
} |