woocommerce/includes/admin/views/html-notice-update.php

20 lines
918 B
PHP
Raw Normal View History

2012-11-27 16:22:47 +00:00
<?php
/**
* Admin View: Notice - Update
*/
if ( ! defined( 'ABSPATH' ) ) {
2015-03-13 23:48:15 +00:00
exit;
}
2012-10-18 09:33:02 +00:00
?>
<div id="message" class="updated woocommerce-message wc-connect">
2016-05-26 14:00:22 +00:00
<p><strong><?php _e( 'WooCommerce Data Update', 'woocommerce' ); ?></strong> &#8211; <?php _e( 'We need to update your store\'s database to the latest version.', 'woocommerce' ); ?></p>
2015-01-29 14:33:06 +00:00
<p class="submit"><a href="<?php echo esc_url( add_query_arg( 'do_update_woocommerce', 'true', admin_url( 'admin.php?page=wc-settings' ) ) ); ?>" class="wc-update-now button-primary"><?php _e( 'Run the updater', 'woocommerce' ); ?></a></p>
2012-10-18 13:47:21 +00:00
</div>
<script type="text/javascript">
jQuery( '.wc-update-now' ).click( 'click', function() {
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>