Customize: Correct the capability mapping and associated tests for the `unfiltered_css` capability.
Fixes #35395 Built from https://develop.svn.wordpress.org/trunk@39016 git-svn-id: http://core.svn.wordpress.org/trunk@38958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e2e47a192d
commit
2b6ceeb465
|
@ -320,6 +320,7 @@ function map_meta_cap( $cap, $user_id ) {
|
|||
else
|
||||
$caps[] = 'do_not_allow';
|
||||
break;
|
||||
case 'unfiltered_css' :
|
||||
case 'unfiltered_html' :
|
||||
// Disallow unfiltered_html for all users, even admins and super admins.
|
||||
if ( defined( 'DISALLOW_UNFILTERED_HTML' ) && DISALLOW_UNFILTERED_HTML )
|
||||
|
@ -327,10 +328,7 @@ function map_meta_cap( $cap, $user_id ) {
|
|||
elseif ( is_multisite() && ! is_super_admin( $user_id ) )
|
||||
$caps[] = 'do_not_allow';
|
||||
else
|
||||
$caps[] = $cap;
|
||||
break;
|
||||
case 'unfiltered_css' :
|
||||
$caps[] = 'unfiltered_html';
|
||||
$caps[] = 'unfiltered_html';
|
||||
break;
|
||||
case 'edit_files':
|
||||
case 'edit_plugins':
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-beta1-39015';
|
||||
$wp_version = '4.7-beta1-39016';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue