From 0da8f232532d2052736e6db6314b2c420d6f936b Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Mon, 5 Nov 2018 18:35:23 -0200 Subject: [PATCH] Display notices in order pay page. Closes #21798 --- includes/shortcodes/class-wc-shortcode-checkout.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/shortcodes/class-wc-shortcode-checkout.php b/includes/shortcodes/class-wc-shortcode-checkout.php index 7305eb6f1dd46..dba4d03e6a587 100644 --- a/includes/shortcodes/class-wc-shortcode-checkout.php +++ b/includes/shortcodes/class-wc-shortcode-checkout.php @@ -79,6 +79,8 @@ private static function order_pay( $order_id ) { do_action( 'before_woocommerce_pay' ); + wc_print_notices(); + $order_id = absint( $order_id ); // Pay for existing order.