5.0betaCompatibility for plugins that had workarounds for Gutenberg plugin
-
Found an issue with beta5.0 installed and Gutenberg plugin disabled when using Elementor plugin. They test to see if the gutenberg_can_edit_post_type, gutenberg_init, and the_gutenberg_project functions exist and then employ a workaround for compatibility.
I’ve implemented the following code as a workaround
if (!function_exists('gutenberg_can_edit_post_type')) { function gutenberg_can_edit_post_type($post_type) { return true; } } if (!function_exists('gutenberg_init')) { function gutenberg_init() { return true; } } if (!function_exists('the_gutenberg_project')) { function the_gutenberg_project() { return true; } }
This tests to see if the functions from the plugin exist, if they do not, then mimics them. Is there a need to mimic these functions on the release candidate to make sure plugins that have already built in compatibility with the plugin continue with the core update.
Alternatively, please feel free to use the code as a workaround. You can see this on my WP5 Fixes Bitbucket Repo as I am updating as I find other quirks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘5.0betaCompatibility for plugins that had workarounds for Gutenberg plugin’ is closed to new replies.