Beispiel #1
0
 public function processPost($uniqueName, $itemInfo)
 {
     if (isset($_POST[$uniqueName])) {
         return fm_strip_tags($_POST[$uniqueName]);
     }
     return NULL;
 }
 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;
 }