mirror of
git://develop.git.wordpress.org/
synced 2025-01-31 04:17:57 +01:00
Revert [3952] because it causes double slashing
git-svn-id: https://develop.svn.wordpress.org/trunk@4409 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a5298798aa
commit
10b506305a
@ -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…
x
Reference in New Issue
Block a user