Changeset 2678 for branches/1.5/xmlrpc.php
- Timestamp:
- 06/30/2005 12:53:44 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/xmlrpc.php
r2677 r2678 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: … … 615 614 $post_content = apply_filters( 'content_save_pre', $content_struct['description'] ); 616 615 $catnames = $content_struct['categories']; 616 617 $post_category = array(); 617 618 618 619 if (is_array($catnames)) { … … 620 621 $post_category[] = get_cat_ID($cat); 621 622 } 622 } else {623 $post_category[] = $post_default_category;624 623 } else if ( !empty($catnames) ) { 624 $post_category = array(get_cat_ID($catnames)); 625 } 625 626 626 627 $post_excerpt = $content_struct['mt_excerpt']; … … 831 832 832 833 global $wpdb; 833 834 834 835 $blog_ID = $wpdb->escape($args[0]); 835 836 $user_login = $wpdb->escape($args[1]);
Note: See TracChangeset
for help on using the changeset viewer.