Typo fix from DD32. Fixes uploads. fixes #5302

git-svn-id: http://svn.automattic.com/wordpress/trunk@6304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-11-01 16:20:16 +00:00
parent f831731601
commit fbbbfb9a48
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);