%s

', esc_html( self::get_message() ) ); } // /the_notice /** * Gets the message to warn the user about the plugin requirements not being met. * * @since 1.0.0 * * @return string Message to show to the user. */ public static function get_message() { // Variables $output = array(); // Processing if ( version_compare( $GLOBALS['wp_version'], ABS_VERSION_WP, '<' ) ) { $output[] = sprintf( /* translators: 1: required WP version number, 2: available WP version number */ __( 'The Additional Block Styles plugin requires at least WordPress version %1$s. You are running version %2$s.', 'additional-block-styles' ), ABS_VERSION_WP, $GLOBALS['wp_version'] ); } if ( version_compare( PHP_VERSION, ABS_VERSION_PHP, '<' ) ) { $output[] = sprintf( /* translators: 1: required PHP version number, 2: available PHP version number */ __( 'The Additional Block Styles plugin requires at least PHP version %1$s. You are running version %2$s.', 'additional-block-styles' ), ABS_VERSION_PHP, PHP_VERSION ); } if ( ! empty( $output ) ) { $output[] = __( 'Please upgrade and try again.', 'additional-block-styles' ); } // Output return implode( PHP_EOL, $output ); } // /get_message } // /ABS_Compatibility ABS_Compatibility::init();