Merged in release/release-1.09 (pull request #10)
Release/release 1.09 * Install missing plugins * rs set to 1 * rebase pantheon for aws * rebase pantheon for aws * prod config change * prod config change * fix campaing issue * revert Approved-by: Jay Sharma
This commit is contained in:
committed by
Jay Sharma
parent
779393381f
commit
22f10a9edd
@@ -129,7 +129,7 @@ function wc_clear_notices() {
|
||||
*
|
||||
* @since 2.1
|
||||
* @param bool $return true to return rather than echo. @since 3.5.0.
|
||||
* @return string|void
|
||||
* @return string|null
|
||||
*/
|
||||
function wc_print_notices( $return = false ) {
|
||||
if ( ! did_action( 'woocommerce_init' ) ) {
|
||||
@@ -137,14 +137,7 @@ function wc_print_notices( $return = false ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$session = WC()->session;
|
||||
|
||||
// If the session handler has not initialized, there will be no notices for us to read.
|
||||
if ( null === $session ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$all_notices = $session->get( 'wc_notices', array() );
|
||||
$all_notices = WC()->session->get( 'wc_notices', array() );
|
||||
$notice_types = apply_filters( 'woocommerce_notice_types', array( 'error', 'success', 'notice' ) );
|
||||
|
||||
// Buffer output.
|
||||
|
||||
Reference in New Issue
Block a user