Changeset 1920
- Timestamp:
- 12/08/04 02:35:53 (4 years ago)
- Files:
-
- trunk/wp-includes/functions-post.php (modified) (4 diffs)
- trunk/xmlrpc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/functions-post.php
r1892 r1920 168 168 $newbies = printr($post_categories,1); 169 169 170 logio("O","Old: $oldies\nNew: $newbies\n");171 172 170 // Delete any? 173 171 $delete_cats = array_diff($old_categories,$post_categories); 174 172 175 logio("O","Delete: " . printr($delete_cats,1));176 177 173 if ($delete_cats) { 178 174 foreach ($delete_cats as $del) { … … 182 178 AND post_id = $post_ID 183 179 "); 184 185 logio("O","deleting post/cat: $post_ID, $del");186 180 } 187 181 } … … 190 184 $add_cats = array_diff($post_categories, $old_categories); 191 185 192 logio("O","Add: " . printr($add_cats,1));193 194 186 if ($add_cats) { 195 187 foreach ($add_cats as $new_cat) { … … 197 189 INSERT INTO $wpdb->post2cat (post_id, category_id) 198 190 VALUES ($post_ID, $new_cat)"); 199 200 logio("O","adding post/cat: $post_ID, $new_cat");201 191 } 202 192 } trunk/xmlrpc.php
r1833 r1920 520 520 521 521 $catnames = $content_struct['categories']; 522 log io('O', 'Post cats: ' . printr($catnames,true));522 logIO('O', 'Post cats: ' . printr($catnames,true)); 523 523 $post_category = array(); 524 524
