diff --git a/wp-includes/functions.php b/wp-includes/functions.php index b5d21285b6..bfc93eed77 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2561,8 +2561,9 @@ function get_allowed_mime_types( $user = null ) { if ( function_exists( 'current_user_can' ) ) $unfiltered = $user ? user_can( $user, 'unfiltered_html' ) : current_user_can( 'unfiltered_html' ); - if ( empty( $unfiltered ) ) - unset( $t['htm|html'] ); + if ( empty( $unfiltered ) ) { + unset( $t['htm|html'], $t['js'] ); + } /** * Filters list of allowed mime types and file extensions. diff --git a/wp-includes/version.php b/wp-includes/version.php index 661964e24c..ead4dba6ce 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9.1-beta1-42266'; +$wp_version = '4.9.1-beta1-42267'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.