Exemplo n.º 1
0
 public static function init()
 {
     $cspErrors = reqCsp::getVar('cspErrors');
     if (!empty($cspErrors)) {
         if (!is_array($cspErrors)) {
             $cspErrors = array($cspErrors);
         }
         $cspErrors = array_map('htmlspecialchars', array_map('stripslashes', array_map('trim', $cspErrors)));
         if (!empty($cspErrors)) {
             self::$current = $cspErrors;
             add_filter('the_content', array('errorsCsp', 'appendErrorsContent'), 99999);
         }
     }
 }