PluginProbe
WANotifier for Forms and Actions / 2.1.3
WANotifier for Forms and Actions v2.1.3
3.1.1 3.1.0 3.0.4 2.7.10 2.7.11 2.7.12 2.7.13 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 3.0.0 3.0.1 3.0.2 3.0.3 trunk 0.1.0 0.1.1 1.0.0 1.0.1 1.0.2 All 67 releases
← All changes | includes/classes/class-notifier-admin-notices.php +0 -7 3.1.12.1.3 View file →
@@ -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'));