diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 5a2d3c5d4e..c5f6feb2f0 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2565,8 +2565,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 cee0d424cd..279f795fed 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42260'; +$wp_version = '5.0-alpha-42261'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.