WC_Plugin_Updates::get_extensions_inline_warning_major()
Get the inline warning notice for major version updates.
Description Description
Return Return
(string)
Source Source
File: includes/admin/plugin-updates/class-wc-plugin-updates.php
protected function get_extensions_inline_warning_major() { $upgrade_type = 'major'; $plugins = $this->major_untested_plugins; $version_parts = explode( '.', $this->new_version ); $new_version = $version_parts[0] . '.0'; if ( empty( $plugins ) ) { return; } /* translators: %s: version number */ $message = sprintf( __( "<strong>Heads up!</strong> The versions of the following plugins you're running haven't been tested with WooCommerce %s. Please update them or confirm compatibility before updating WooCommerce, or you may experience issues:", 'woocommerce' ), $new_version ); ob_start(); include 'views/html-notice-untested-extensions-inline.php'; return ob_get_clean(); }