Skip to content

Commit

Permalink
Gutenberg: Bump minimum compatibility to WordPress 5.2.0.
Browse files Browse the repository at this point in the history
Some JS has changed in Gutenberg, so we're bumping the minimum version
compatibility to WP v5.2.0.

See #13.
  • Loading branch information
r-a-y committed Apr 9, 2020
1 parent 668e572 commit 67ed6a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gdocs-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ function ray_gdoc_shortcode_init() {
/**
* Initialize Gutenberg support.
*
* Requires at least WordPress 5.2.0 due to some JS.
*
* @since 0.5.0
*/
function ray_google_docs_gutenberg_init() {
// Bail if Gutenberg isn't available.
if ( ! function_exists( 'register_block_type' ) ) {
// Bail if not at least WP 5.2.
if ( ! function_exists( 'wp_is_xml_request' ) ) {
return;
}

Expand Down

0 comments on commit 67ed6a3

Please sign in to comment.