3

I have a Multi-Site install running on the current version of WordPress (3.3.1). The problem I'm having is the ID's are being stripped out of my tags in the editor. When I am logged in as a "Super Admin", the ID's are NOT stripped out. When I am logged in as an "Admin", the ID's are stripped out.

Here is an example of the valid HTML being used:

<ul class="tabs-content">
    <li id="tab1-tab" class="active">Tab 1 content</li>
    <li id="tab2-tab">Tab 2 content</li>
    <li id="tab3-tab">Tab 3 content</li>
</ul>

After updating the post as an admin, here is the result, every time:

<ul class="tabs-content">
    <li class="active">Tab 1 content</li>
    <li>Tab 2 content</li>
    <li>Tab 3 content</li>
</ul>

This issue can be reproduced by setting up a WordPress multisite install. Create an Super Admin (setup on install) and a new user with Admin privileges. Try adding the HTML in the first code example with the ID's in it. The Super Admin account will not strip the ID's, the Admin account will.

Anyone know of a fix, plugin, or reason for this?

Thanks in advance!

1
  • I've just run into this today. It's almost like Multisite doesn't respect the unfiltered_html capability.
    – Pat J
    Jun 21, 2013 at 19:01

1 Answer 1

1

Turns out this has something to with the way a Multi-site intall handles unfiltered_html capabilities between Super Admins and Admins. The problem was resolved using the Unfiltered MU plugin, however, beaware of the warning stated on the plugin page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.