Changeset 1666

Show
Ignore:
Timestamp:
09/16/04 09:55:00 (4 years ago)
Author:
michelvaldrighi
Message:

wtf was I thinking? here comes a bunch of fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/xmlrpc.php

    r1659 r1666  
    534534      trackback_url_list($content_struct['mt_tb_ping_urls'],$post_ID); 
    535535 
    536       return $post_ID
     536      return strval($post_ID)
    537537    } 
    538538 
     
    558558      } 
    559559 
     560      $postdata = wp_get_single_post($post_ID, ARRAY_A); 
    560561      extract($postdata); 
    561562 
     
    610611      trackback_url_list($content_struct['mt_tb_ping_urls'], $post_ID); 
    611612 
    612       return $post_ID
     613      return true
    613614    } 
    614615 
     
    640641 
    641642        $post = get_extended($postdata['post_content']); 
    642         $link = post_permalink($entry['ID']); 
     643        $link = post_permalink($postdata['ID']); 
    643644 
    644645        $allow_comments = ('open' == $postdata['comment_status']) ? 1 : 0; 
     
    647648        $resp = array( 
    648649          'dateCreated' => new IXR_Date($post_date), 
    649           'userid' => $entry['post_author'], 
    650           'postid' => $entry['ID'], 
     650          'userid' => $postdata['post_author'], 
     651          'postid' => $postdata['ID'], 
    651652          'description' => $post['main'], 
    652           'title' => $entry['post_title'], 
     653          'title' => $postdata['post_title'], 
    653654          'link' => $link, 
    654655          'permaLink' => $link, 
     
    656657//        'content' => $entry['post_content'], 
    657658//        'categories' => $categories 
    658           'mt_excerpt' => $entry['post_excerpt'], 
     659          'mt_excerpt' => $postdata['post_excerpt'], 
    659660          'mt_text_more' => $post['extended'], 
    660661          'mt_allow_comments' => $allow_comments, 
     
    825826 
    826827          if($success) { 
    827             $resp = array($url); 
     828            $resp = array('url' => $url); 
    828829            return $resp; 
    829830          } else {