html-notice-update.php 915 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Admin View: Notice - Update
  4. */
  5. if ( ! defined( 'ABSPATH' ) ) {
  6. exit;
  7. }
  8. ?>
  9. <div id="message" class="updated woocommerce-message wc-connect">
  10. <p><strong><?php _e( 'WooCommerce data update', 'woocommerce' ); ?></strong> &#8211; <?php _e( 'We need to update your store database to the latest version.', 'woocommerce' ); ?></p>
  11. <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>
  12. </div>
  13. <script type="text/javascript">
  14. jQuery( '.wc-update-now' ).click( 'click', function() {
  15. 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
  16. });
  17. </script>