Typo fix from DD32. Fixes uploads. fixes #5302

git-svn-id: https://develop.svn.wordpress.org/trunk@6304 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-11-01 16:20:16 +00:00
parent 8bbc8227ab
commit 60883171f5
1 changed files with 1 additions and 1 deletions

View File

@ -1306,7 +1306,7 @@ function wp_insert_attachment($object, $file = false, $parent = 0) {
if ( empty($post_name) ) {
$post_name = sanitize_title($post_title, $post_ID);
$wpdb->update( $wpdb->posts, compact( $post_name ), array( 'ID' => $post_ID ) );
$wpdb->update( $wpdb->posts, compact("post_name"), array( 'ID' => $post_ID ) );
}
wp_set_post_categories($post_ID, $post_category);