projects/plugins/jetpack/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"'; |
projects/plugins/jetpack/modules/notes.php 1 location
|
@@ 186-191 (lines=6) @@
|
| 183 |
|
} |
| 184 |
|
} |
| 185 |
|
|
| 186 |
|
if ( class_exists( 'GP_Locales' ) ) { |
| 187 |
|
$wpcom_locale_object = GP_Locales::by_field( 'wp_locale', $wpcom_locale ); |
| 188 |
|
if ( $wpcom_locale_object instanceof GP_Locale ) { |
| 189 |
|
$wpcom_locale = $wpcom_locale_object->slug; |
| 190 |
|
} |
| 191 |
|
} |
| 192 |
|
|
| 193 |
|
$classes = 'wpnt-loading wpn-read'; |
| 194 |
|
$wp_admin_bar->add_menu( array( |
projects/plugins/jetpack/modules/masterbar/masterbar/class-masterbar.php 2 locations
|
@@ 407-412 (lines=6) @@
|
| 404 |
|
} |
| 405 |
|
} |
| 406 |
|
|
| 407 |
|
if ( class_exists( 'GP_Locales' ) ) { |
| 408 |
|
$wpcom_locale_object = GP_Locales::by_field( 'wp_locale', get_locale() ); |
| 409 |
|
if ( $wpcom_locale_object instanceof GP_Locale ) { |
| 410 |
|
$wpcom_locale = $wpcom_locale_object->slug; |
| 411 |
|
} |
| 412 |
|
} |
| 413 |
|
|
| 414 |
|
return $wpcom_locale; |
| 415 |
|
} |
|
@@ 430-435 (lines=6) @@
|
| 427 |
|
} |
| 428 |
|
} |
| 429 |
|
|
| 430 |
|
if ( class_exists( 'GP_Locales' ) ) { |
| 431 |
|
$jetpack_locale_object = GP_Locales::by_field( 'slug', $slug ); |
| 432 |
|
if ( $jetpack_locale_object instanceof GP_Locale ) { |
| 433 |
|
$jetpack_locale = $jetpack_locale_object->wp_locale ? $jetpack_locale_object->wp_locale : 'en_US'; |
| 434 |
|
} |
| 435 |
|
} |
| 436 |
|
|
| 437 |
|
return $jetpack_locale; |
| 438 |
|
} |