post() 정적인 공개 메소드

* FeedWordPress::param ()
static public post ( $key, $default = NULL )
 function updates_requested()
 {
     global $wpdb;
     if (isset($_POST['update']) or isset($_POST['action']) or isset($_POST['update_uri'])) {
         // Only do things with side-effects for HTTP POST or command line
         $fwp_update_invoke = 'post';
     } else {
         $fwp_update_invoke = 'get';
     }
     $update_set = array();
     if ($fwp_update_invoke != 'get') {
         if (is_array(FeedWordPress::post('link_ids')) and FeedWordPress::post('action') == FWP_UPDATE_CHECKED) {
             $targets = $wpdb->get_results("\n\t\t\t\tSELECT * FROM {$wpdb->links}\n\t\t\t\tWHERE link_id IN (" . implode(",", $_POST['link_ids']) . ")\n\t\t\t\t");
             if (is_array($targets)) {
                 foreach ($targets as $target) {
                     $update_set[] = $target->link_rss;
                 }
             } else {
                 // This should never happen
                 FeedWordPress::critical_bug('fwp_syndication_manage_page::targets', $targets, __LINE__, __FILE__);
             }
         } elseif (!is_null(FeedWordPress::post('update_uri'))) {
             $targets = FeedWordPress::post('update_uri');
             if (!is_array($targets)) {
                 $targets = array($targets);
             }
             $first = each($targets);
             if (!is_numeric($first['key'])) {
                 // URLs in keys
                 $targets = array_keys($targets);
             }
             $update_set = $targets;
         }
     }
     return $update_set;
 }