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 >
< strong >< ? php esc_html_e ( 'WooCommerce data update' , 'woocommerce' ); ?> </strong> – <?php esc_html_e( 'We need to update your store database to the latest version.', 'woocommerce' ); ?>
</ 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 " >
2018-06-07 11:57:57 +00:00
< ? php esc_html_e ( 'Run the updater' , 'woocommerce' ); ?>
</ a >
</ p >
2012-10-18 13:47:21 +00:00
</ div >
< script type = " text/javascript " >
2015-07-14 22:53:32 +00:00
jQuery ( '.wc-update-now' ) . click ( 'click' , function () {
2016-06-06 17:20:10 +00:00
return window . confirm ( '<?php echo esc_js( __( ' It is strongly recommended that you backup your database before proceeding . Are you sure you wish to run the updater now ? ', ' woocommerce ' ) ); ?>' ); // jshint ignore:line
2012-10-18 13:47:21 +00:00
});
2015-01-29 14:33:06 +00:00
</ script >