From fbbbfb9a48aedb8369fadee553d3aed90e5be9ec Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 1 Nov 2007 16:20:16 +0000 Subject: [PATCH] Typo fix from DD32. Fixes uploads. fixes #5302 git-svn-id: http://svn.automattic.com/wordpress/trunk@6304 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 34ceb18628..88c1fc4c2f 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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);