libreform / wp-libre-form

Easy native HTML5 forms for WordPress. Version 1.5 is unmaintained, but works without issue. 2.0 has been rewritten from the ground, and can be found at https://github.com/libreform/libreform
https://wordpress.org/plugins/wp-libre-form
GNU General Public License v3.0
67 stars 27 forks source link

Multisite compatibility #151

Closed k1sul1 closed 5 years ago

k1sul1 commented 5 years ago

105

This is starting to look unfixable without resorting in brittle hacks. I looked at how Unfiltered MU does it, and it's complicated. AFAIK there's no way to add the unfiltered_html cap to a single post type only that would always work.

Checking that the user is posting data from wplf-form is tricky to do in admin, and then there's the case of /wp-json/wp/v2/wplf-form. Removing the cap after save could cause some problems if someone has added the cap previously.

I'd say we block users that are not super admins from editing forms, unless they have the cap, and document this in the README, along the lines of

Multisite support

WP Libre Form works fine in WordPress Network (multisite). There's some gotchas: