woocommerce/includes/admin/views/html-notice-updating.php

28 lines
1.1 KiB
PHP
Raw Normal View History

2016-05-11 11:43:35 +00:00
<?php
/**
* Admin View: Notice - Updating
2018-06-07 12:40:12 +00:00
*
* @package WooCommerce\Admin
2016-05-11 11:43:35 +00:00
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
2019-04-18 19:06:17 +00:00
$pending_actions_url = admin_url( 'admin.php?page=wc-status&tab=action-scheduler&s=woocommerce_run_update&status=pending' );
$cron_disabled = defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON;
2019-04-23 11:01:13 +00:00
$cron_cta = $cron_disabled ? __( 'You can manually run queued updates here.', 'woocommerce' ) : __( 'View progress &rarr;', 'woocommerce' );
2016-05-11 11:43:35 +00:00
?>
<div id="message" class="updated woocommerce-message wc-connect">
2018-06-07 12:40:12 +00:00
<p>
2019-04-23 11:10:07 +00:00
<strong><?php esc_html_e( 'WooCommerce database update', 'woocommerce' ); ?></strong><br>
<?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' ); ?>
2019-04-18 19:06:17 +00:00
<?php
if ( $cron_disabled ) {
2019-04-23 11:10:07 +00:00
echo '<br>' . esc_html__( 'Note: WP CRON has been disabled on your install which may prevent this update from completing.', 'woocommerce' );
2019-04-18 19:06:17 +00:00
}
?>
2019-04-23 11:01:13 +00:00
&nbsp;<a href="<?php echo esc_url( $pending_actions_url ); ?>"><?php echo esc_html( $cron_cta ); ?></a>
2018-06-07 12:40:12 +00:00
</p>
2016-05-11 11:43:35 +00:00
</div>