Changeset 1659
- Timestamp:
- 09/14/2004 05:20:22 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r1658 r1659 14 14 $post_default_category = 1; // posts submitted via the xmlrpc interface go into that category 15 15 16 $xmlrpc_logging = 1;16 $xmlrpc_logging = 0; 17 17 18 18 function logIO($io,$msg) { … … 476 476 } 477 477 478 $post_author = $user data->ID;478 $post_author = $user_data->ID; 479 479 480 480 $post_title = $content_struct['title']; … … 485 485 $post_more = $content_struct['mt_text_more']; 486 486 487 $comment_status = $content_struct['mt_allow_comments'] ? 'open' : 'closed'; 488 $ping_status = $content_struct['mt_allow_pings'] ? 'open' : 'closed'; 487 $comment_status = (empty($content_struct['mt_allow_comments'])) ? 488 get_settings('default_comment_status') 489 : $content_struct['mt_allow_comments']; 490 491 $ping_status = (empty($content_struct['mt_allow_pings'])) ? 492 get_settings('default_ping_status') 493 : $content_struct['mt_allow_pings']; 489 494 490 495 if ($post_more) { … … 493 498 494 499 // Do some timestamp voodoo 495 $dateCreated = $content_struct['dateCreated']; 500 $dateCreatedd = $content_struct['dateCreated']; 501 $dateCreated = $dateCreatedd->getIso(); 496 502 if (!empty($dateCreated)) { 497 503 $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated)); … … 572 578 } 573 579 574 $comment_status = (1 == $content_struct['mt_allow_comments']) ? 'open' : 'closed'; 575 $ping_status = $content_struct['mt_allow_pings'] ? 'open' : 'closed'; 580 $comment_status = (empty($content_struct['mt_allow_comments'])) ? 581 get_settings('default_comment_status') 582 : $content_struct['mt_allow_comments']; 583 584 $ping_status = (empty($content_struct['mt_allow_pings'])) ? 585 get_settings('default_ping_status') 586 : $content_struct['mt_allow_pings']; 576 587 577 588 // Do some timestamp voodoo 578 589 $dateCreated = $content_struct['dateCreated']; 590 $dateCreated = $dateCreated->getIso(); 579 591 if (!empty($dateCreated)) { 580 592 $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated)); … … 641 653 'link' => $link, 642 654 'permaLink' => $link, 655 // commented out because no other tool seems to use them 643 656 // 'content' => $entry['post_content'], 644 657 // 'categories' => $categories … … 698 711 'link' => $link, 699 712 'permaLink' => $link, 713 // commented out because no other tool seems to use them 700 714 // 'content' => $entry['post_content'], 701 715 // 'categories' => $categories
Note: See TracChangeset
for help on using the changeset viewer.