We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
unfiltered_html
1 parent f1de7e4 commit 67d03a9Copy full SHA for 67d03a9
wp-includes/functions.php
@@ -2565,8 +2565,9 @@ function get_allowed_mime_types( $user = null ) {
2565
if ( function_exists( 'current_user_can' ) )
2566
$unfiltered = $user ? user_can( $user, 'unfiltered_html' ) : current_user_can( 'unfiltered_html' );
2567
2568
- if ( empty( $unfiltered ) )
2569
- unset( $t['htm|html'] );
+ if ( empty( $unfiltered ) ) {
+ unset( $t['htm|html'], $t['js'] );
2570
+ }
2571
2572
/**
2573
* Filters list of allowed mime types and file extensions.
wp-includes/version.php
@@ -4,7 +4,7 @@
4
*
5
* @global string $wp_version
6
*/
7
-$wp_version = '5.0-alpha-42260';
+$wp_version = '5.0-alpha-42261';
8
9
10
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
0 commit comments