説明なし

html-notice-update.php 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Admin View: Notice - Update
  4. *
  5. * @package WooCommerce\Admin
  6. */
  7. if ( ! defined( 'ABSPATH' ) ) {
  8. exit;
  9. }
  10. $update_url = wp_nonce_url(
  11. add_query_arg( 'do_update_woocommerce', 'true', admin_url( 'admin.php?page=wc-settings' ) ),
  12. 'wc_db_update',
  13. 'wc_db_update_nonce'
  14. );
  15. ?>
  16. <div id="message" class="updated woocommerce-message wc-connect">
  17. <p>
  18. <strong><?php esc_html_e( 'WooCommerce database update required', 'woocommerce' ); ?></strong>
  19. </p>
  20. <p>
  21. <?php
  22. esc_html_e( 'WooCommerce has been updated! To keep things running smoothly, we have to update your database to the newest version.', 'woocommerce' );
  23. /* translators: 1: Link to docs 2: Close link. */
  24. printf( ' ' . esc_html__( 'The database update process runs in the background and may take a little while, so please be patient. Advanced users can alternatively update via %1$sWP CLI%2$s.', 'woocommerce' ), '<a href="https://github.com/woocommerce/woocommerce/wiki/Upgrading-the-database-using-WP-CLI">', '</a>' );
  25. ?>
  26. </p>
  27. <p class="submit">
  28. <a href="<?php echo esc_url( $update_url ); ?>" class="wc-update-now button-primary">
  29. <?php esc_html_e( 'Update WooCommerce Database', 'woocommerce' ); ?>
  30. </a>
  31. <a href="https://docs.woocommerce.com/document/how-to-update-woocommerce/" class="button-secondary">
  32. <?php esc_html_e( 'Learn more about updates', 'woocommerce' ); ?>
  33. </a>
  34. </p>
  35. </div>