Changeset 3849 for trunk/xmlrpc.php
- Timestamp:
- 06/06/2006 05:04:41 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r3517 r3849 243 243 $post_data = wp_get_single_post($post_ID, ARRAY_A); 244 244 245 $categories = implode(',', wp_get_post_cat s(1,$post_ID));245 $categories = implode(',', wp_get_post_categories($post_ID)); 246 246 247 247 $content = '<title>'.stripslashes($post_data['post_title']).'</title>'; … … 286 286 287 287 $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date']); 288 $categories = implode(',', wp_get_post_cat s(1,$entry['ID']));288 $categories = implode(',', wp_get_post_categories($entry['ID'])); 289 289 290 290 $content = '<title>'.stripslashes($entry['post_title']).'</title>'; … … 696 696 697 697 $categories = array(); 698 $catids = wp_get_post_cat s('',$post_ID);698 $catids = wp_get_post_categories($post_ID); 699 699 foreach($catids as $catid) { 700 700 $categories[] = get_cat_name($catid); … … 756 756 $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date']); 757 757 $categories = array(); 758 $catids = wp_get_post_cat s('',$entry['ID']);758 $catids = wp_get_post_categories($entry['ID']); 759 759 foreach($catids as $catid) { 760 760 $categories[] = get_cat_name($catid); … … 959 959 960 960 $categories = array(); 961 $catids = wp_get_post_cat s('',intval($post_ID));961 $catids = wp_get_post_categories(intval($post_ID)); 962 962 // first listed category will be the primary category 963 963 $isPrimary = true; … … 997 997 } 998 998 999 wp_set_post_cat s('',$post_ID, $catids);999 wp_set_post_categories($post_ID, $catids); 1000 1000 1001 1001 return true; … … 1080 1080 1081 1081 // retain old cats 1082 $cats = wp_get_post_cat s('',$post_ID);1082 $cats = wp_get_post_categories($post_ID); 1083 1083 $postdata['post_category'] = $cats; 1084 1084 $this->escape($postdata);
Note: See TracChangeset
for help on using the changeset viewer.