Site Administrator Account problem
-
Here’s a fun one…
My account, as a super admin, works 100% a-okay.
An administrator account I created for a client isn’t working. Here’s what happens: http://screenr.com/fYi
Basically, I hit save in a widget or menu item, and most of the html is deleted. so weird. So far, only happens with that account.
Going to delete it and re-add it to test.
-
Just happened to a new Administrator account… so strange.
Elevating privileges to Super Admin resolves the issue, but I can’t have all of my users as Super Admins… any ideas?
This is intended behavior on MultiSite. It is intended to prevent users other than super/network admins from using unapproved and potentially dangerous JavaScript or other code in widgets.
If you really, really, *really* trust your users, you can use http://ww.wp.xz.cn/extend/plugins/unfiltered-mu/. But do not use it if you do not trust your users.
But that said, what do they need to change? There ARE other plugins that are far far safer to use.
Thanks for the help, kind sir.
The things that are breaking include:
html (br tags) in menu item titles,
html5 elements in pages,
html in widgets.Basically, no javascript anywhere, just basic html.
Thanks for the help!
-Jacob
basic html like a href and img tags? Because those should work fine.
html (br tags) in menu item titles
That isn’t built into WordPress anyway so it would HAVE to be a plugin.
Hey ya’ll,
Thanks for the replies.
break tags in menu item titles are definitely supported. give it a try.
basic html is not a problem. html5 elements seem to disappear.
Anyway, I installed that mu plugin and the issue seems to be resolved.
Thanks for the help.
-J
Yeah, I was about to say ‘Wait, which menu items?’ Cause if you mean WIDGETS no, but MENUS… Brain catching up!
html5 elements seem to disappear.
Which ones in specific?
figure, figcaption are the 2 I tested.
Quick test looks like HTML5 tags are being stripped in MultiSite for non Super Grovers…. This is interesting. We may need to post core folks to get that fixed.
Okay. You can ADD them via a plugin/function:
add_filter('edit_allowedposttags', 'ds_allowedposttags'); add_filter('edit_allowedtags', 'ds_allowedtags'); function ds_allowedposttags() { $allowedposttags = array( //fill this array with post tags as in wp-includes/kses.php ); return $allowedposttags; } function ds_allowedtags() { $allowedtags = array( //fill this array with comment tags as in wp-includes/kses.php ); return $allowedtags; }Mind you, both figure and figcaption are there.
'figure' => array( 'align' => array (), 'class' => array (), 'dir' => array (), 'lang' => array(), 'style' => array (), 'xml:lang' => array(), ), 'figcaption' => array( 'align' => array (), 'class' => array (), 'dir' => array (), 'lang' => array(), 'style' => array (), 'xml:lang' => array(), ),Good stuff. I definitely think it’s an issue.
Can I just add the figure/figcaption array to those functions and call it a day? Are these functions just extending the allowed tags? or completely overwriting it?
Thanks again for your help!
-J
Well the thing is figure and figcaption ARE listed as allowed tags, that’s what I’m saying…
gotcha. very interesting. Thing is, I added those tags to the functions, and now they work…
Okay now that is weird… I’m going to play with this and see if I can sort anything out. I may kick it to trac though.
The topic ‘Site Administrator Account problem’ is closed to new replies.