Ready to get started?Download WordPress


Enhanced Text Widget
Administrators under 3.5.1 multisite not allowed unfiltered_html (2 posts)

  1. mlochmann
    Posted 1 year ago #


    I run a 3.5.1 multisite install. Only superadmin was not filtered by kses. So the admins on my sub-blogs couldn't post php code or java script. So, to change that I would have to alter the user role "adminstrator", right? Turns out, that adding capability "unfiltered_html" doesn't work. Either I'd have to use a role scaper plugin or elevate the user. That seemed a bit much for this plugin only.

    So I changed the plugin line 113

    if ( current_user_can('unfiltered_html') )


    if ( current_user_can('administrator') )

    and now my sub-blog admins can post as well. Maybe this helps someone. Greets Markus


  2. bostondv
    Plugin Author

    Posted 1 year ago #

    Interesting discovery, I wasn't aware multisite handled this differently.

    I'll think about changing it in the next release though I need to think through whether there's any security issues allows multisite admins access to add PHP code.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic