Nav apraksta

html-notice-updating.php 1.1KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Admin View: Notice - Updating
  4. *
  5. * @package WooCommerce\Admin
  6. */
  7. use Automattic\Jetpack\Constants;
  8. if ( ! defined( 'ABSPATH' ) ) {
  9. exit;
  10. }
  11. $pending_actions_url = admin_url( 'admin.php?page=wc-status&tab=action-scheduler&s=woocommerce_run_update&status=pending' );
  12. $cron_disabled = Constants::is_true( 'DISABLE_WP_CRON' );
  13. $cron_cta = $cron_disabled ? __( 'You can manually run queued updates here.', 'woocommerce' ) : __( 'View progress &rarr;', 'woocommerce' );
  14. ?>
  15. <div id="message" class="updated woocommerce-message wc-connect">
  16. <p>
  17. <strong><?php esc_html_e( 'WooCommerce database update', 'woocommerce' ); ?></strong><br>
  18. <?php esc_html_e( 'WooCommerce is updating the database in the background. The database update process may take a little while, so please be patient.', 'woocommerce' ); ?>
  19. <?php
  20. if ( $cron_disabled ) {
  21. echo '<br>' . esc_html__( 'Note: WP CRON has been disabled on your install which may prevent this update from completing.', 'woocommerce' );
  22. }
  23. ?>
  24. &nbsp;<a href="<?php echo esc_url( $pending_actions_url ); ?>"><?php echo esc_html( $cron_cta ); ?></a>
  25. </p>
  26. </div>