html-admin-dashboard-setup.php
4 years ago
html-admin-page-addons-category-nav.php
4 years ago
html-admin-page-addons.php
3 years ago
html-admin-page-product-export.php
5 years ago
html-admin-page-reports.php
5 years ago
html-admin-page-status-logs-db.php
5 years ago
html-admin-page-status-logs.php
4 years ago
html-admin-page-status-report.php
3 years ago
html-admin-page-status-tools.php
3 years ago
html-admin-page-status.php
8 years ago
html-admin-settings.php
5 years ago
html-bulk-edit-product.php
3 years ago
html-email-template-preview.php
7 years ago
html-notice-base-table-missing.php
5 years ago
html-notice-custom.php
8 years ago
html-notice-download-dir-sync-complete.php
4 years ago
html-notice-install.php
5 years ago
html-notice-legacy-shipping.php
7 years ago
html-notice-maxmind-license-key.php
6 years ago
html-notice-no-shipping-methods.php
7 years ago
html-notice-redirect-only-download.php
4 years ago
html-notice-regenerating-lookup-table.php
5 years ago
html-notice-regenerating-thumbnails.php
8 years ago
html-notice-secure-connection.php
8 years ago
html-notice-template-check.php
5 years ago
html-notice-update.php
7 years ago
html-notice-updated.php
7 years ago
html-notice-updating.php
6 years ago
html-notice-uploads-directory-is-unprotected.php
3 years ago
html-notice-wp-php-minimum-requirements.php
6 years ago
html-quick-edit-product.php
5 years ago
html-report-by-date.php
5 years ago
html-notice-update.php
40 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin View: Notice - Update |
| 4 | * |
| 5 | * @package WooCommerce\Admin |
| 6 | */ |
| 7 | |
| 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | exit; |
| 10 | } |
| 11 | |
| 12 | $update_url = wp_nonce_url( |
| 13 | add_query_arg( 'do_update_woocommerce', 'true', admin_url( 'admin.php?page=wc-settings' ) ), |
| 14 | 'wc_db_update', |
| 15 | 'wc_db_update_nonce' |
| 16 | ); |
| 17 | |
| 18 | ?> |
| 19 | <div id="message" class="updated woocommerce-message wc-connect"> |
| 20 | <p> |
| 21 | <strong><?php esc_html_e( 'WooCommerce database update required', 'woocommerce' ); ?></strong> |
| 22 | </p> |
| 23 | <p> |
| 24 | <?php |
| 25 | esc_html_e( 'WooCommerce has been updated! To keep things running smoothly, we have to update your database to the newest version.', 'woocommerce' ); |
| 26 | |
| 27 | /* translators: 1: Link to docs 2: Close link. */ |
| 28 | 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>' ); |
| 29 | ?> |
| 30 | </p> |
| 31 | <p class="submit"> |
| 32 | <a href="<?php echo esc_url( $update_url ); ?>" class="wc-update-now button-primary"> |
| 33 | <?php esc_html_e( 'Update WooCommerce Database', 'woocommerce' ); ?> |
| 34 | </a> |
| 35 | <a href="https://docs.woocommerce.com/document/how-to-update-woocommerce/" class="button-secondary"> |
| 36 | <?php esc_html_e( 'Learn more about updates', 'woocommerce' ); ?> |
| 37 | </a> |
| 38 | </p> |
| 39 | </div> |
| 40 |