Changeset 5029 for trunk/wp-includes/post.php
- Timestamp:
- 03/12/2007 04:09:44 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r5022 r5029 803 803 if ($add_cats) { 804 804 foreach ($add_cats as $new_cat) { 805 $new_cat = (int) $new_cat; 805 806 if ( !empty($new_cat) ) 806 807 $wpdb->query(" 807 808 INSERT INTO $wpdb->post2cat (post_id, category_id) 808 VALUES ( $post_ID, $new_cat)");809 VALUES ('$post_ID', '$new_cat')"); 809 810 } 810 811 }
Note: See TracChangeset
for help on using the changeset viewer.