Code Duplication    Length = 3-3 lines in 2 locations

wp-admin/options-general.php 1 location

@@ 324-326 (lines=3) @@
321
<?php
322
$languages = get_available_languages();
323
$translations = wp_get_available_translations();
324
if ( ! is_multisite() && defined( 'WPLANG' ) && '' !== WPLANG && 'en_US' !== WPLANG && ! in_array( WPLANG, $languages ) ) {
325
	$languages[] = WPLANG;
326
}
327
if ( ! empty( $languages ) || ! empty( $translations ) ) {
328
	?>
329
	<tr>

wp-includes/formatting.php 1 location

@@ 4162-4164 (lines=3) @@
4159
4160
		case 'WPLANG':
4161
			$allowed = get_available_languages();
4162
			if ( ! is_multisite() && defined( 'WPLANG' ) && '' !== WPLANG && 'en_US' !== WPLANG ) {
4163
				$allowed[] = WPLANG;
4164
			}
4165
			if ( ! in_array( $value, $allowed ) && ! empty( $value ) ) {
4166
				$value = get_option( $option );
4167
			}