Skip to content

Commit fa41b67

Browse files
Copy attachment description
1 parent be26ec4 commit fa41b67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

admin-functions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ function duplicate_post_copy_attachments( $new_id, $post ) {
489489
'ID' => $new_attachment_id,
490490
'post_title' => $child->post_title,
491491
'post_excerpt' => $child->post_excerpt,
492+
'post_content' => $child->post_content,
492493
'post_author' => $new_post_author->ID,
493494
];
494495
wp_update_post( wp_slash( $cloned_child ) );

0 commit comments

Comments
 (0)