2019-03-13 12:25:20 +00:00
< ? php
/**
2019-04-22 14:42:23 +00:00
* Admin View : Notice - Regenerating product lookup table .
2019-03-13 12:25:20 +00:00
*
* @ package WooCommerce / admin
*/
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=wc_update_product_lookup_tables&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 →' , 'woocommerce' );
2019-03-13 12:25:20 +00:00
?>
< div id = " message " class = " updated woocommerce-message " >
< p >
2019-04-23 11:10:07 +00:00
< strong >< ? php esc_html_e ( 'WooCommerce is updating product data in the background' , 'woocommerce' ); ?> </strong><br>
2019-03-13 12:25:20 +00:00
< ? php
2019-04-18 19:06:17 +00:00
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' );
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-03-13 12:25:20 +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>
2019-03-13 12:25:20 +00:00
</ p >
</ div >