Allow Windows folks to delete attachements, fixes #2496

git-svn-id: https://develop.svn.wordpress.org/trunk@3952 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2006-07-04 18:33:08 +00:00
parent 8f8f10cc1e
commit 49f9e7e815

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);