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-base-table-missing.php
44 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin View: Notice - Base table missing. |
| 4 | * |
| 5 | * @package WooCommerce\Admin |
| 6 | */ |
| 7 | |
| 8 | defined( 'ABSPATH' ) || exit; |
| 9 | |
| 10 | ?> |
| 11 | <div class="updated woocommerce-message"> |
| 12 | <a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'base_tables_missing' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"> |
| 13 | <?php esc_html_e( 'Dismiss', 'woocommerce' ); ?> |
| 14 | </a> |
| 15 | |
| 16 | <p> |
| 17 | <strong><?php esc_html_e( 'Database tables missing', 'woocommerce' ); ?></strong> |
| 18 | </p> |
| 19 | <p> |
| 20 | <?php |
| 21 | $verify_db_tool_available = array_key_exists( 'verify_db_tables', WC_Admin_Status::get_tools() ); |
| 22 | $missing_tables = get_option( 'woocommerce_schema_missing_tables' ); |
| 23 | if ( $verify_db_tool_available ) { |
| 24 | echo wp_kses_post( |
| 25 | sprintf( |
| 26 | /* translators: %1%s: Missing tables (seperated by ",") %2$s: Link to check again */ |
| 27 | __( 'One or more tables required for WooCommerce to function are missing, some features may not work as expected. Missing tables: %1$s. <a href="%2$s">Check again.</a>', 'woocommerce' ), |
| 28 | esc_html( implode( ', ', $missing_tables ) ), |
| 29 | wp_nonce_url( admin_url( 'admin.php?page=wc-status&tab=tools&action=verify_db_tables' ), 'debug_action' ) |
| 30 | ) |
| 31 | ); |
| 32 | } else { |
| 33 | echo wp_kses_post( |
| 34 | sprintf( |
| 35 | /* translators: %1%s: Missing tables (seperated by ",") */ |
| 36 | __( 'One or more tables required for WooCommerce to function are missing, some features may not work as expected. Missing tables: %1$s.', 'woocommerce' ), |
| 37 | esc_html( implode( ', ', $missing_tables ) ) |
| 38 | ) |
| 39 | ); |
| 40 | } |
| 41 | ?> |
| 42 | </p> |
| 43 | </div> |
| 44 |