2012-11-27 16:22:47 +00:00
< ? php
2014-07-28 14:50:11 +00:00
/**
* Admin View : Notice - Update
2018-06-07 11:57:57 +00:00
*
* @ package WooCommerce\Admin
2014-07-28 14:50:11 +00:00
*/
2014-07-28 15:16:35 +00:00
if ( ! defined ( 'ABSPATH' ) ) {
2015-03-13 23:48:15 +00:00
exit ;
2014-07-28 15:16:35 +00:00
}
2014-07-28 14:50:11 +00:00
2018-06-07 12:05:46 +00:00
$update_url = wp_nonce_url (
add_query_arg ( 'do_update_woocommerce' , 'true' , admin_url ( 'admin.php?page=wc-settings' ) ),
'wc_db_update' ,
'wc_db_update_nonce'
);
2012-10-18 09:33:02 +00:00
?>
< div id = " message " class = " updated woocommerce-message wc-connect " >
2018-06-07 11:57:57 +00:00
< p >
2019-03-06 12:00:54 +00:00
< strong >< ? php esc_html_e ( 'WooCommerce database update required' , 'woocommerce' ); ?> </strong>
2019-02-28 10:45:38 +00:00
</ p >
< p >
< ? php
esc_html_e ( 'WooCommerce has been updated! To keep things running smoothly, we have to update your database to the newest version.' , 'woocommerce' );
/* translators: 1: Link to docs 2: Close link. */
2019-03-06 12:00:54 +00:00
printf ( ' ' . esc_html__ ( 'The database update process runs in the background and may take a little while, so please be patient. Advanced users can alternatively update via %1$sWP CLI%2$s.' , 'woocommerce' ), '<a href="https://github.com/woocommerce/woocommerce/wiki/Upgrading-the-database-using-WP-CLI">' , '</a>' );
2019-02-28 10:45:38 +00:00
?>
2018-06-07 11:57:57 +00:00
</ p >
< p class = " submit " >
2018-06-07 12:05:46 +00:00
< a href = " <?php echo esc_url( $update_url ); ?> " class = " wc-update-now button-primary " >
2019-02-28 10:45:38 +00:00
< ? php esc_html_e ( 'Update WooCommerce Database' , 'woocommerce' ); ?>
</ a >
< a href = " https://docs.woocommerce.com/document/how-to-update-woocommerce/ " class = " button-secondary " >
< ? php esc_html_e ( 'Learn more about updates' , 'woocommerce' ); ?>
2018-06-07 11:57:57 +00:00
</ a >
</ p >
2012-10-18 13:47:21 +00:00
</ div >