From 49f9e7e815062e5b83ad801497a50fade27bb116 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Tue, 4 Jul 2006 18:33:08 +0000 Subject: [PATCH] Allow Windows folks to delete attachements, fixes #2496 git-svn-id: https://develop.svn.wordpress.org/trunk@3952 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 b29d0d2b69..c89c5527fd 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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);