=' ) ) { add_action( 'admin_notices', 'aft_fail_php_version' ); } elseif ( ! version_compare( get_bloginfo( 'version' ), '4.7', '>=' ) ) { add_action( 'admin_notices', 'aftfail_wp_version' ); } else { /** * Freemius. */ require_once(BLOCKSPARE_PLUGIN_DIR.'/freemius.php'); /** * Plugin init and welcome. */ include_once BLOCKSPARE_PLUGIN_DIR. 'inc/init.php'; include_once BLOCKSPARE_PLUGIN_DIR.'inc/welcome.php'; include_once BLOCKSPARE_PLUGIN_DIR.'inc/fonts.php'; } function aft_fail_php_version() { /* translators: %s: PHP version */ $message = sprintf( esc_html__( 'Blockspare for Gutenberg requires PHP version %s+, plugin is currently NOT RUNNING.', 'blockspare' ), '5.6' ); $html_message = sprintf( '
%s
', wpautop( $message ) ); echo wp_kses_post( $html_message ); } function aft_fail_wp_version() { /* translators: %s: WordPress version */ $message = sprintf( esc_html__( 'Blockspare for Gutenberg requires WordPress version %s+. Because you are using an earlier version, the plugin is currently NOT RUNNING.', 'blockspare' ), '4.7' ); $html_message = sprintf( '
%s
', wpautop( $message ) ); echo wp_kses_post( $html_message ); }