Example #1
0
 /**
  * Display events that have occured grouped by type
  */
 private static function display_error_messages()
 {
     $events = Session::get_events();
     if (!empty($events) && is_wp_error($events)) {
         $notifications = Display::prepare_events_for_display($events);
         foreach ($notifications as $type => $message) {
             if (!empty($message)) {
                 echo '<div id="YALW_' . $type . '" class="YALW_' . $type . '_container">' . apply_filters('login_errors', $message) . "</div>\n";
             }
         }
         Session::clean_events();
     }
 }