Return string

This commit is contained in:
Mike Jolley 2019-02-25 22:01:22 +00:00
parent 8792b53ecb
commit 6c35df1551
1 changed files with 1 additions and 1 deletions

View File

@ -589,7 +589,7 @@ class WC_Shortcodes {
*/
public static function shop_messages() {
if ( ! function_exists( 'wc_print_notices' ) ) {
return;
return '';
}
return '<div class="woocommerce">' . wc_print_notices( true ) . '</div>';
}