• Resolved bügelfrei

    (@alexanderbailey)


    The plugin will not work for (regular) admin users on a multisite installation.

    Admin users are able to add and configure the block in the post editor. With in the editor, the configured block will preview as desired. However, the published page/post will not include any HTML generated by the block. After reloading the editor page, the block will show the message “This block contains unexpected or invalid content.”

    As a super admin user, the block works for me as intended, producing the desired code on the front end of the website. Also, I can recover and successfully publish buttons that regular admin users attempted to publish.

    If a regular admin subsequently edits the post, the block will revert to this “invalid content” state and the button’s code will be stripped from the front end.

    My guess is that the block requires users to to have unfiltered_html capability.

    Is there a workaround for this or can the plugin be modified so that users do not need unfiltered_html capabilities to use it?

    I’m happy to set up user(s) on our staging server if you would like to work on this. Thank you!

    • This topic was modified 10 months, 3 weeks ago by bügelfrei.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter bügelfrei

    (@alexanderbailey)

    We use another plugin, Embed Iframe, to allow standard admin users to add iframes to their content, which would otherwise require super admin capabilities on a multisite. I notice that Embed Iframe doesn’t supply its own block; instead, users enter a shortcode. I think this gets us around the unfiltered_html capability requirement. (Needless to say, a dedicated block is vastly preferable to using the shortcode block.)

    Plugin Contributor Jens Kuerschner

    (@jekuer)

    Hi @alexanderbailey,

    Thank you for this finding.
    Indeed, the block creates HTML, which might get blocked in this case.

    We already prepared a fix, where the block creates a shortcode under the hood, which should no longer get blocked. Expect a new release in the next days.

    All the best,
    Jens

    Thread Starter bügelfrei

    (@alexanderbailey)

    Thanks @jekuer! I’ll will keep an eye out for the next release, test, and report back.

    Plugin Contributor Jens Kuerschner

    (@jekuer)

    Should be fixed with 2.0.4

    Thread Starter bügelfrei

    (@alexanderbailey)

    Confirmed. The plugin works now for standard admin users on our multisite. Thank you, Jens!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add to Calendar Button unusable with Multisite Installations’ is closed to new replies.