Multisite failure
-
This plugin seems to fail on a Multisite site – it does work on a single site.
It may be a super-admin capability vs a sub-site admin capability.The original code that works is (with api code removed):
<!-- wp:webfactory/map {"height":390,"address":"denver, co"} --> <div class="wp-block-webfactory-map"><div class="wp-block-webfactory-map"><iframe width="100%" height="390px" src="https://www.google.com/maps/embed/v1/place?q=denver%2C%20co&maptype=roadmap&zoom=10&key=apikey...." frameborder="0"></iframe></div></div> <!-- /wp:webfactory/map -->
which gets changed to the following upon leaving the editor and viewing the post:
<!-- wp:webfactory/map {"height":390,"address":"denver, co"} --> <div class="wp-block-webfactory-map"><div class="wp-block-webfactory-map"></div></div> <!-- /wp:webfactory/map -->
This is when logged in as a sub-site admin. If I instead login as the super-admin, then it works as expected.
I think perhaps sub-site admins can’t insert <iframe>s into a post, in which case there is no workaround other than a warning message for sub-site admins.
Edit: yep, from the docs: Note: In WordPress Multisite, only Super Admins have the unfiltered_html capability.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Multisite failure’ is closed to new replies.