Changeset 2680
- Timestamp:
- 06/30/2005 04:07:42 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r2676 r2680 11 11 12 12 $post_default_title = ""; // posts submitted via the xmlrpc interface get that title 13 $post_default_category = 1; // posts submitted via the xmlrpc interface go into that category14 13 15 14 $xmlrpc_logging = 0; … … 564 563 $post_category[] = get_cat_ID($cat); 565 564 } 566 } else {567 $post_category[] = $post_default_category;568 565 } else if ( !empty($catnames) ) { 566 $post_category = array(get_cat_ID($catnames)); 567 } 569 568 570 569 // We've got all the data -- post it: … … 612 611 $post_content = apply_filters( 'content_save_pre', $content_struct['description'] ); 613 612 $catnames = $content_struct['categories']; 613 614 $post_category = array(); 614 615 615 616 if (is_array($catnames)) { … … 617 618 $post_category[] = get_cat_ID($cat); 618 619 } 619 } else {620 $post_category[] = $post_default_category;621 620 } else if ( !empty($catnames) ) { 621 $post_category = array(get_cat_ID($catnames)); 622 } 622 623 623 624 $post_excerpt = $content_struct['mt_excerpt']; … … 825 826 826 827 global $wpdb; 827 828 828 829 $blog_ID = $wpdb->escape($args[0]); 829 830 $user_login = $wpdb->escape($args[1]); … … 1194 1195 logIO("O","(PB) URI='$pagelinkedto' ID='$post_ID' Found='$way'"); 1195 1196 1196 $post = $wpdb->get_row("SELECT post_author FROM $wpdb->posts WHERE ID = '$post_ID'");1197 $post = get_post($post_ID); 1197 1198 1198 1199 if ( !$post ) // Post_ID not found
Note: See TracChangeset
for help on using the changeset viewer.