Açıklama Yok

html-notice-regenerating-lookup-table.php 1.2KB

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Admin View: Notice - Regenerating product lookup table.
  4. *
  5. * @package WooCommerce\Admin
  6. */
  7. use Automattic\Jetpack\Constants;
  8. defined( 'ABSPATH' ) || exit;
  9. $pending_actions_url = admin_url( 'admin.php?page=wc-status&tab=action-scheduler&s=wc_update_product_lookup_tables&status=pending' );
  10. $cron_disabled = Constants::is_true( 'DISABLE_WP_CRON' );
  11. $cron_cta = $cron_disabled ? __( 'You can manually run queued updates here.', 'woocommerce' ) : __( 'View progress &rarr;', 'woocommerce' );
  12. ?>
  13. <div id="message" class="updated woocommerce-message">
  14. <p>
  15. <strong><?php esc_html_e( 'WooCommerce is updating product data in the background', 'woocommerce' ); ?></strong><br>
  16. <?php
  17. esc_html_e( 'Product display, sorting, and reports may not be accurate until this finishes. It will take a few minutes and this notice will disappear when complete.', 'woocommerce' );
  18. if ( $cron_disabled ) {
  19. echo '<br>' . esc_html__( 'Note: WP CRON has been disabled on your install which may prevent this update from completing.', 'woocommerce' );
  20. }
  21. ?>
  22. &nbsp;<a href="<?php echo esc_url( $pending_actions_url ); ?>"><?php echo esc_html( $cron_cta ); ?></a>
  23. </p>
  24. </div>