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
                
                
                    
                                                
                                                    
                                |  | @@ 230-235 (lines=6) @@ | 
                                                            
                                    | 227 |  | 			} | 
                                                            
                                    | 228 |  | 		} | 
                                                            
                                    | 229 |  |  | 
                                                            
                                    | 230 |  | 		if ( class_exists( 'GP_Locales' ) ) { | 
                                                            
                                    | 231 |  | 			$wpcom_locale_object = GP_Locales::by_field( 'wp_locale', get_locale() ); | 
                                                            
                                    | 232 |  | 			if ( $wpcom_locale_object instanceof GP_Locale ) { | 
                                                            
                                    | 233 |  | 				$wpcom_locale = $wpcom_locale_object->slug; | 
                                                            
                                    | 234 |  | 			} | 
                                                            
                                    | 235 |  | 		} | 
                                                            
                                    | 236 |  |  | 
                                                            
                                    | 237 |  | 		return $wpcom_locale; | 
                                                            
                                    | 238 |  | 	} |