Automattic / gutenberg-ramp

Control conditions under which Gutenberg loads - either from your theme code or from a UI
https://wordpress.org/plugins/gutenberg-ramp/
76 stars 15 forks source link

Disable Ramp when Gutenberg version requirements aren't met #71

Closed pyronaur closed 5 years ago

pyronaur commented 5 years ago

Gutenberg Ramp 1.1 requires Gutenberg 3.5 or higher to work properly.

We should deactivate Gutenberg Ramp if the version requirements aren't met and display a notice informing the user that Gutenberg should be updated to 3.5+ for Ramp to work.

maevelander commented 5 years ago

Proposed admin notice text:

Plugin deactivated. Ramp requires Gutenberg plugin v3.5 or higher. Please update Gutenberg then reactivate Ramp.

pyronaur commented 5 years ago

Maybe

Plugin deactivated. Ramp requires Gutenberg plugin v3.5 or higher. Please update and activate Gutenberg then reactivate Ramp.

Ramp will auto-load Gutenberg if necessary, but I think at this point it'd be better for WordPress to handle the plugin activation.

pyronaur commented 5 years ago

Fixed by #75