Changeset 5030 for branches/2.1/wp-includes/post.php
- Timestamp:
- 03/12/2007 09:25:19 PM (20 years ago)
- File:
-
- 1 edited
-
branches/2.1/wp-includes/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/wp-includes/post.php
r5022 r5030 801 801 if ($add_cats) { 802 802 foreach ($add_cats as $new_cat) { 803 $new_cat = (int) $new_cat; 803 804 if ( !empty($new_cat) ) 804 805 $wpdb->query(" 805 806 INSERT INTO $wpdb->post2cat (post_id, category_id) 806 VALUES ( $post_ID, $new_cat)");807 VALUES ('$post_ID', '$new_cat')"); 807 808 } 808 809 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)