base, array( 'toplevel_page_wsal-auditlog', 'wp-activity-log_page_wsal-usersessions-views', 'wp-activity-log_page_wsal-np-notifications', 'wp-activity-log_page_wsal-rep-views-main', 'toplevel_page_wsal-auditlog-network', 'wp-activity-log_page_wsal-usersessions-views-network', 'wp-activity-log_page_wsal-np-notifications-network', 'wp-activity-log_page_wsal-rep-views-main-network' ), true ) ) { $notice_46_extensions_merged = Settings_Helper::get_boolean_option_value( 'extensions-merged-notice' ); if ( $notice_46_extensions_merged ) { self::display_46_extensions_merged(); } $notice_upgrade = Settings_Helper::get_boolean_option_value( Abstract_Migration::UPGRADE_NOTICE, false ); if ( $notice_upgrade ) { self::display_notice_upgrade(); } } } /** * Responsible for initializing the AJAX hooks for the notifications * * @return void * * @since 4.6.0 */ public static function init_ajax_hooks() { $notice_46_extensions_merged = Settings_Helper::get_boolean_option_value( 'extensions-merged-notice' ); if ( $notice_46_extensions_merged ) { \add_action( 'wp_ajax_wsal_dismiss_extensions_merged', array( __CLASS__, 'dismiss_extensions_merged' ) ); } $notice_upgrade = Settings_Helper::get_boolean_option_value( Abstract_Migration::UPGRADE_NOTICE, false ); if ( $notice_upgrade ) { \add_action( 'wp_ajax_wsal_dismiss_upgrade_notice', array( __CLASS__, 'dismiss_upgrade_notice' ) ); } } /** * Display admin notice that as of 4.6.0 the extension plugins are part of the core. * * @since 4.6.0 */ public static function display_46_extensions_merged() { ?>
:
', '' ); ?>