diff --git a/admin/class-angelleye-updater-admin.php b/admin/class-angelleye-updater-admin.php index 6a2a32d..b8132a3 100644 --- a/admin/class-angelleye-updater-admin.php +++ b/admin/class-angelleye-updater-admin.php @@ -119,13 +119,13 @@ public function __construct($file) { * @return void */ public function maybe_process_dismiss_link() { - if (isset($_GET['action']) && ( 'angelleye-helper-dismiss' == $_GET['action'] ) && isset($_GET['nonce']) && check_admin_referer('angelleye-helper-dismiss', 'nonce')) { + if (isset($_GET['action']) && ( 'angelleye-helper-dismiss' == $_GET['action'] ) && isset($_GET['nonce'])) { update_site_option('angelleye_helper_dismiss_activation_notice', true); $redirect_url = remove_query_arg('action', remove_query_arg('nonce', $_SERVER['REQUEST_URI'])); wp_safe_redirect($redirect_url); exit; } - if (isset($_GET['action']) && ( 'angelleye-helper-expired-notice-dismiss' == $_GET['action'] ) && isset($_GET['nonce']) && check_admin_referer('angelleye-helper-expired-notice-dismiss', 'nonce')) { + if (isset($_GET['action']) && ( 'angelleye-helper-expired-notice-dismiss' == $_GET['action'] ) && isset($_GET['nonce'])) { $angelleye_helper_dismiss_activation_notice = get_site_option('angelleye_helper_dismiss_activation_notice', false); if( $angelleye_helper_dismiss_activation_notice == false ) { update_site_option('angelleye_helper_dismiss_activation_notice', array('0' => $_GET['product'])); @@ -581,12 +581,14 @@ public function admin_notices() { */ protected function get_activated_products() { $response = array(); - $response = get_option($this->token . '-activated', array()); - - if (!is_array($response)) + $exclude_key = 'woo-paypal-ratenzahlung/woo-paypal-ratenzahlung.php'; + if(isset($response) && isset($response[$exclude_key])) { + unset($response[$exclude_key]); + } + if (!is_array($response)) { $response = array(); - + } return $response; }