Hello,
It seems that from some version WordPress developers decided to prohibit "unfiltered_html" globally and allow that for the superadmin in the multisite environment only.
function map_meta_cap() at the capabilities.php always returns 'do_not_allow' for the 'unfiltered_html' if you are not the superadmin in the multi-site environment. So we can consider this capability as deprecated. Look on this code fragment if you are interested:
...
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';
break;
}
// Fall through if not DISALLOW_UNFILTERED_HTML
case 'delete_user':
case 'delete_users':
// If multisite these caps are allowed only for super admins.
if ( is_multisite() && !is_super_admin( $user_id ) ) {
$caps[] = 'do_not_allow';
} else {
if ( 'delete_user' == $cap )
$cap = 'delete_users';
$caps[] = $cap;
}
break;
Thanks for the interesting question. I didn't know about such change in the WordPress functionality.
Vladimir.