static function pf_opml_subscriber_validate($input) { $feed_obj = new PF_Feeds_Schema(); if (!empty($input['list'])) { if (!is_array($input['list'])) { if (!$feed_obj->has_feed($input['list'])) { $check = $feed_obj->create((string) $input['list'], array('title' => 'OPML Subscription at ' . $input['list'], 'htmlUrl' => $input['list'], 'type' => 'opml', 'tags' => 'OPML Subscription', 'module_added' => get_called_class())); if (is_wp_error($check) || !$check) { wp_die($check); } self::get_data_object(get_post($check)); } else { $feed_obj->update_url($input['list']); } } else { wp_die('Bad feed input. Why are you trying to place an array?'); } } }