Allow Windows folks to delete attachements, fixes #2496

git-svn-id: http://svn.automattic.com/wordpress/trunk@3952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2006-07-04 18:33:08 +00:00
parent b1aee5c2db
commit 5da002f012
1 changed files with 1 additions and 1 deletions

View File

@ -1259,7 +1259,7 @@ function wp_insert_attachment($object, $file = false, $post_parent = 0) {
wp_set_post_categories($post_ID, $post_category);
if ( $file )
add_post_meta($post_ID, '_wp_attached_file', $file );
add_post_meta($post_ID, '_wp_attached_file', quotemeta( $file ) );
clean_post_cache($post_ID);