diff --git a/wp-admin/install.php b/wp-admin/install.php index 2b8099b30c..a21a12c0cb 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -279,7 +279,7 @@ if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) { */ $language = ''; if ( ! empty( $_REQUEST['language'] ) ) { - $language = preg_replace( '/[^a-zA-Z_]/', '', $_REQUEST['language'] ); + $language = preg_replace( '/[^a-zA-Z0-9_]/', '', $_REQUEST['language'] ); } elseif ( isset( $GLOBALS['wp_local_package'] ) ) { $language = $GLOBALS['wp_local_package']; } diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php index 1404c32599..1036a497ca 100644 --- a/wp-admin/setup-config.php +++ b/wp-admin/setup-config.php @@ -105,7 +105,7 @@ function setup_config_display_header( $body_classes = array() ) { $language = ''; if ( ! empty( $_REQUEST['language'] ) ) { - $language = preg_replace( '/[^a-zA-Z_]/', '', $_REQUEST['language'] ); + $language = preg_replace( '/[^a-zA-Z0-9_]/', '', $_REQUEST['language'] ); } elseif ( isset( $GLOBALS['wp_local_package'] ) ) { $language = $GLOBALS['wp_local_package']; } diff --git a/wp-includes/version.php b/wp-includes/version.php index b0114159b1..4d0fdbba34 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8.2-alpha-41295'; +$wp_version = '4.8.2-alpha-41336'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.