15 lines
877 B
PHP
15 lines
877 B
PHP
<?php
|
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
?>
|
|
<div id="message" class="updated woocommerce-message wc-connect">
|
|
<div class="squeezer">
|
|
<h4><?php _e( '<strong>WooCommerce Data Update Required</strong> – We just need to update your install to the latest version', 'woocommerce' ); ?></h4>
|
|
<p class="submit"><a href="<?php echo add_query_arg( 'do_update_woocommerce', 'true', admin_url('admin.php?page=woocommerce_settings') ); ?>" class="wc-update-now button-primary"><?php _e( 'Run the updater', 'woocommerce' ); ?></a></p>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
jQuery('.wc-update-now').click('click', function(){
|
|
var answer = confirm( '<?php _e( 'It is strongly recommended that you backup your database before proceeding. Are you sure you wish to run the updater now?', 'woocommerce' ); ?>' );
|
|
return answer;
|
|
});
|
|
</script>
|