Changeset 1666
- Timestamp:
- 09/16/2004 09:55:00 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r1659 r1666 534 534 trackback_url_list($content_struct['mt_tb_ping_urls'],$post_ID); 535 535 536 return $post_ID;536 return strval($post_ID); 537 537 } 538 538 … … 558 558 } 559 559 560 $postdata = wp_get_single_post($post_ID, ARRAY_A); 560 561 extract($postdata); 561 562 … … 610 611 trackback_url_list($content_struct['mt_tb_ping_urls'], $post_ID); 611 612 612 return $post_ID;613 return true; 613 614 } 614 615 … … 640 641 641 642 $post = get_extended($postdata['post_content']); 642 $link = post_permalink($ entry['ID']);643 $link = post_permalink($postdata['ID']); 643 644 644 645 $allow_comments = ('open' == $postdata['comment_status']) ? 1 : 0; … … 647 648 $resp = array( 648 649 'dateCreated' => new IXR_Date($post_date), 649 'userid' => $ entry['post_author'],650 'postid' => $ entry['ID'],650 'userid' => $postdata['post_author'], 651 'postid' => $postdata['ID'], 651 652 'description' => $post['main'], 652 'title' => $ entry['post_title'],653 'title' => $postdata['post_title'], 653 654 'link' => $link, 654 655 'permaLink' => $link, … … 656 657 // 'content' => $entry['post_content'], 657 658 // 'categories' => $categories 658 'mt_excerpt' => $ entry['post_excerpt'],659 'mt_excerpt' => $postdata['post_excerpt'], 659 660 'mt_text_more' => $post['extended'], 660 661 'mt_allow_comments' => $allow_comments, … … 825 826 826 827 if($success) { 827 $resp = array( $url);828 $resp = array('url' => $url); 828 829 return $resp; 829 830 } else {
Note: See TracChangeset
for help on using the changeset viewer.