| @@ -1,9 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 3 | - exit; | |
| 4 | -} | |
| 5 | - | |
| 6 | 2 | /** |
| 7 | 3 | * Admin notices class |
| 8 | 4 | * |
| 9 | 5 | * @package Wa_Notifier |
| @@ -30,11 +26,8 @@ | ||
| 30 | 26 | /** |
| 31 | 27 | * Init |
| 32 | 28 | */ |
| 33 | 29 | public static function init() { |
| 34 | - if(!is_admin()){ | |
| 35 | - return; | |
| 36 | - } | |
| 37 | 30 | $user_id = get_current_user_id(); |
| 38 | 31 | $transient_notices = get_transient( 'notifier_notice_' . $user_id ); |
| 39 | 32 | if ( isset($transient_notices) ) { |
| 40 | 33 | add_action('admin_notices', array( __CLASS__, 'show_transient_notices')); |