[wp-trac] [WordPress Trac] #23820: Multisite: Cannot give unfiltered html to administrator
WordPress Trac
noreply at wordpress.org
Tue Mar 19 20:57:16 UTC 2013
#23820: Multisite: Cannot give unfiltered html to administrator
-----------------------------+--------------------------
Reporter: dyordan1 | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: General
Version: 3.5.1 | Severity: normal
Keywords: 2nd-opinion |
-----------------------------+--------------------------
I need to have all administrators (regular, not network admins) on a
network be able to add unfiltered html and I found an interesting bug (or
feature if there's a reason to disallow to anyone but network admin?). I
might be missing something but the code below seems contradictory. (Logged
in as admin while running the code)
{{{
$theAdmin = get_role('administrator');
$theAdmin->add_cap('unfiltered_html');
global $current_user;
var_dump($current_user->has_cap('unfiltered_html')); //bool(false)
var_dump($current_user->allcaps['unfiltered_html']); //bool(true)
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23820>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list