Fix PHPCS violations in includes/admin/plugin-updates/views/html-notice-untested-extensions-modal.php
This commit is contained in:
parent
3932710136
commit
f38e76421a
|
@ -1,24 +1,26 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Admin View: Notice - Untested extensions.
|
* Admin View: Notice - Untested extensions.
|
||||||
|
*
|
||||||
|
* @package WooCommerce\Admin
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) {
|
if ( ! defined( 'ABSPATH' ) ) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$untested_plugins_msg = sprintf(
|
||||||
|
/* translators: %s: version number */
|
||||||
|
__( 'The following active plugin(s) have not declared compatibility with WooCommerce %s yet and should be updated and examined further before you proceed:', 'woocommerce' ),
|
||||||
|
$new_version
|
||||||
|
);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div id="wc_untested_extensions_modal">
|
<div id="wc_untested_extensions_modal">
|
||||||
<div class="wc_untested_extensions_modal--content">
|
<div class="wc_untested_extensions_modal--content">
|
||||||
<h1><?php _e( "This is a major update, are you sure you're ready?", 'woocommerce' ); ?></h1>
|
<h1><?php esc_html_e( "This is a major update, are you sure you're ready?", 'woocommerce' ); ?></h1>
|
||||||
<div class="wc_plugin_upgrade_notice extensions_warning">
|
<div class="wc_plugin_upgrade_notice extensions_warning">
|
||||||
<p>
|
<p><?php echo esc_html( $untested_plugins_msg ); ?></p>
|
||||||
<?php
|
|
||||||
/* translators: %s: version number */
|
|
||||||
printf(
|
|
||||||
__( 'The following active plugin(s) have not declared compatibility with WooCommerce %s yet and should be updated and examined further before you proceed:', 'woocommerce' ),
|
|
||||||
esc_html( $new_version )
|
|
||||||
);
|
|
||||||
?>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<div class="plugin-details-table-container">
|
<div class="plugin-details-table-container">
|
||||||
<table class="plugin-details-table" cellspacing="0">
|
<table class="plugin-details-table" cellspacing="0">
|
||||||
|
@ -39,7 +41,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p><?php esc_html_e( 'As this is a major update, we strongly recommend creating a backup of your site before updating.', 'woocommerce' ); ?> <a href="https://woocommerce.com/2017/05/create-use-backups-woocommerce/" target="_blank"><?php _e( 'Learn more', 'woocommerce' ); ?></a></p>
|
<p><?php esc_html_e( 'As this is a major update, we strongly recommend creating a backup of your site before updating.', 'woocommerce' ); ?> <a href="https://woocommerce.com/2017/05/create-use-backups-woocommerce/" target="_blank"><?php esc_html_e( 'Learn more', 'woocommerce' ); ?></a></p>
|
||||||
|
|
||||||
<?php if ( current_user_can( 'update_plugins' ) ) : ?>
|
<?php if ( current_user_can( 'update_plugins' ) ) : ?>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
|
|
Loading…
Reference in New Issue