Code Duplication    Length = 5-5 lines in 2 locations

wp-admin/install.php 1 location

@@ 277-281 (lines=5) @@
274
 * @global WP_Locale $wp_locale
275
 */
276
$language = '';
277
if ( ! empty( $_REQUEST['language'] ) ) {
278
	$language = preg_replace( '/[^a-zA-Z_]/', '', $_REQUEST['language'] );
279
} elseif ( isset( $GLOBALS['wp_local_package'] ) ) {
280
	$language = $GLOBALS['wp_local_package'];
281
}
282
283
$scripts_to_print = array( 'jquery' );
284

wp-admin/setup-config.php 1 location

@@ 109-113 (lines=5) @@
106
} // end function setup_config_display_header();
107
108
$language = '';
109
if ( ! empty( $_REQUEST['language'] ) ) {
110
	$language = preg_replace( '/[^a-zA-Z_]/', '', $_REQUEST['language'] );
111
} elseif ( isset( $GLOBALS['wp_local_package'] ) ) {
112
	$language = $GLOBALS['wp_local_package'];
113
}
114
115
switch($step) {
116
	case -1: