Changeset 3849 for trunk/wp-includes/functions-post.php
- Timestamp:
- 06/06/2006 05:04:41 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions-post.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions-post.php
r3843 r3849 162 162 } 163 163 164 wp_set_post_cat s('',$post_ID, $post_category);164 wp_set_post_categories($post_ID, $post_category); 165 165 166 166 if ( 'page' == $post_type ) { … … 349 349 } 350 350 351 wp_set_post_cat s('',$post_ID, $post_category);351 wp_set_post_categories($post_ID, $post_category); 352 352 353 353 if ( $file ) … … 412 412 // Set categories 413 413 if($mode == OBJECT) { 414 $post->post_category = wp_get_post_cat s('',$postid);414 $post->post_category = wp_get_post_categories($postid); 415 415 } 416 416 else { 417 $post['post_category'] = wp_get_post_cat s('',$postid);417 $post['post_category'] = wp_get_post_categories($postid); 418 418 } 419 419 … … 487 487 } 488 488 489 function wp_get_post_cat s($blogid = '1',$post_ID = 0) {489 function wp_get_post_categories($post_ID = 0) { 490 490 global $wpdb; 491 491 … … 505 505 } 506 506 507 function wp_set_post_cat s($blogid = '1',$post_ID = 0, $post_categories = array()) {507 function wp_set_post_categories($post_ID = 0, $post_categories = array()) { 508 508 global $wpdb; 509 509 // If $post_categories isn't already an array, make it one: … … 556 556 wp_cache_delete($cat_id, 'category'); 557 557 } 558 } // wp_set_post_cat s()558 } // wp_set_post_categories() 559 559 560 560 function wp_delete_post($postid = 0) { … … 571 571 572 572 if ( 'publish' == $post->post_status && 'post' == $post->post_type ) { 573 $categories = wp_get_post_cat s('',$post->ID);573 $categories = wp_get_post_categories($post->ID); 574 574 if( is_array( $categories ) ) { 575 575 foreach ( $categories as $cat_id ) {
Note: See TracChangeset
for help on using the changeset viewer.