From 5da002f012d8a09d8b1e2d84d0223b9a37a5239a Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 4 Jul 2006 18:33:08 +0000 Subject: [PATCH] Allow Windows folks to delete attachements, fixes #2496 git-svn-id: http://svn.automattic.com/wordpress/trunk@3952 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 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);