Updating/updated notices
This commit is contained in:
parent
8ba2da9820
commit
a8bd4bc6e1
|
@ -24,6 +24,8 @@ class WC_Admin_Notices {
|
|||
private $core_notices = array(
|
||||
'install' => 'install_notice',
|
||||
'update' => 'update_notice',
|
||||
'updating' => 'updating_notice',
|
||||
'updated' => 'updated_notice',
|
||||
'template_files' => 'template_file_check_notice',
|
||||
'theme_support' => 'theme_check_notice',
|
||||
'legacy_shipping' => 'legacy_shipping_notice',
|
||||
|
@ -168,6 +170,20 @@ class WC_Admin_Notices {
|
|||
include( 'views/html-notice-update.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
* If we are updating, show progress.
|
||||
*/
|
||||
public function updating_notice() {
|
||||
include( 'views/html-notice-updating.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
* If we are done updating, tell user.
|
||||
*/
|
||||
public function updated_notice() {
|
||||
include( 'views/html-notice-updated.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
* If we have just installed, show a message with the install pages button.
|
||||
*/
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
/**
|
||||
* Admin View: Notice - Updated
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div id="message" class="updated woocommerce-message wc-connect">
|
||||
<a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'updated' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php _e( 'Dismiss', 'woocommerce' ); ?></a>
|
||||
|
||||
<p><?php _e( 'WooCommerce data update complete. Thank you for updating to the latest version!', 'woocommerce' ); ?></p>
|
||||
</div>
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
/**
|
||||
* Admin View: Notice - Updating
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div id="message" class="updated woocommerce-message wc-connect">
|
||||
<p><?php _e( '<strong>WooCommerce Data Updating</strong> – Your database is being updated in the background.', 'woocommerce' ); ?></p>
|
||||
</div>
|
Loading…
Reference in New Issue