Revert [3952] because it causes double slashing
git-svn-id: http://svn.automattic.com/wordpress/trunk@4409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e04c8d972e
commit
e7b9e6ac2d
|
@ -1304,7 +1304,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', quotemeta( $file ) );
|
||||
add_post_meta($post_ID, '_wp_attached_file', $file);
|
||||
|
||||
clean_post_cache($post_ID);
|
||||
|
||||
|
|
Loading…
Reference in New Issue