diff --git a/vip-block-data-api.php b/vip-block-data-api.php index 5874815..942f2ed 100644 --- a/vip-block-data-api.php +++ b/vip-block-data-api.php @@ -5,7 +5,7 @@ * Description: Access Gutenberg block data in JSON via the REST API. * Author: WordPress VIP * Text Domain: vip-block-data-api - * Version: 1.4.1 + * Version: 1.4.2 * Requires at least: 6.0 * Tested up to: 6.6 * Requires PHP: 8.0 @@ -20,7 +20,20 @@ if ( ! defined( 'VIP_BLOCK_DATA_API_LOADED' ) ) { define( 'VIP_BLOCK_DATA_API_LOADED', true ); - define( 'WPCOMVIP__BLOCK_DATA_API__PLUGIN_VERSION', '1.4.1' ); + // ToDo: When 6.4 is our min version, switch to wp_admin_notice. + global $wp_version; + if ( version_compare( phpversion(), '8.0', '<' ) || version_compare( $wp_version, '6.0', '<' ) ) { + add_action( 'admin_notices', function () { + ?> +