Exemplo n.º 1
0
Arquivo: base.php Projeto: RA2WP/RA2WP
 public function processPost($uniqueName, $itemInfo)
 {
     if (isset($_POST[$uniqueName])) {
         return fm_strip_tags($_POST[$uniqueName]);
     }
     return NULL;
 }
Exemplo n.º 2
0
 public function processPost($uniqueName, $itemInfo)
 {
     if (isset($_POST[$uniqueName])) {
         return fm_strip_tags(sanitize_text_field($_POST[$uniqueName]));
     } else {
         if (is_array($itemInfo['extra']) && isset($itemInfo['extra']['value'])) {
             return $itemInfo['extra']['value'];
         }
     }
     return null;
 }