2012-11-27 16:22:47 +00:00
< ? php
if ( ! defined ( 'ABSPATH' ) ) exit ; // Exit if accessed directly
2012-10-18 09:33:02 +00:00
?>
< div id = " message " class = " updated woocommerce-message wc-connect " >
< div class = " squeezer " >
2013-05-09 19:42:18 +00:00
< h4 >< ? php _e ( '<strong>WooCommerce Data Update Required</strong> – We just need to update your install to the latest version' , 'woocommerce' ); ?> </h4>
2012-10-18 13:47:21 +00:00
< 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>
2012-10-18 09:33:02 +00:00
</ div >
2012-10-18 13:47:21 +00:00
</ 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 >