We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 571c415 commit 5afb528Copy full SHA for 5afb528
includes/misc-functions.php
@@ -1898,7 +1898,10 @@ function __give_get_active_by_user_meta( $banner_addon_name ) {
1898
$option_name = Give_Addon_Activation_Banner::get_banner_user_meta_key( $banner_addon_name );
1899
$data = array();
1900
1901
- if ( ! isset( $GLOBALS['give_addon_activated_by_user'] ) ) {
+ if (
1902
+ ! isset( $GLOBALS['give_addon_activated_by_user'][ $banner_addon_name ] )
1903
+ || empty( $GLOBALS['give_addon_activated_by_user'][ $banner_addon_name ] )
1904
+ ) {
1905
$GLOBALS['give_addon_activated_by_user'][ $banner_addon_name ] = array();
1906
1907
// Get the meta of activation banner by user.
0 commit comments