[wp-trac] [WordPress Trac] #58610: Allow Custom CSS to Site Admins in Multisite
WordPress Trac
noreply at wordpress.org
Fri Jun 23 12:24:08 UTC 2023
#58610: Allow Custom CSS to Site Admins in Multisite
------------------------------------------------+--------------------------
Reporter: anrghg | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Customize | Version:
Severity: major | Keywords:
Focuses: ui, css, administration, multisite |
------------------------------------------------+--------------------------
I wonder whether anybody ever complained about the Custom CSS Editor not
being available to site admins in multisite networks, in any of the 255
issues involving "Custom CSS" posted in Core Trac so far.
Many site admins can switch theme as well. Why should they not be able to
fix their theme?
Solving this issue only takes deleting the following commented-out lines
in `wp-includes/capabilities.php:591`.
{{{#!php
case 'unfiltered_html':
// Disallow unfiltered_html for all users, even admins and super
admins.
if ( defined( 'DISALLOW_UNFILTERED_HTML' ) &&
DISALLOW_UNFILTERED_HTML ) {
$caps[] = 'do_not_allow';
// } elseif ( is_multisite() && ! is_super_admin( $user_id ) ) {
// $caps[] = 'do_not_allow';
} else {
$caps[] = 'unfiltered_html';
}
break;
}}}
Moreover, the Theme Customizer does not save any CSS containing HTML tags,
so there never is any HTML in Custom CSS.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58610>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list