Skip to content

Commit

Permalink
Document the fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
enricobattocchi committed Jul 22, 2024
1 parent fa41b67 commit bc287e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,8 @@ function duplicate_post_copy_attachments( $new_id, $post ) {
$cloned_child = [
'ID' => $new_attachment_id,
'post_title' => $child->post_title,
'post_excerpt' => $child->post_excerpt,
'post_content' => $child->post_content,
'post_excerpt' => $child->post_excerpt, // Caption.
'post_content' => $child->post_content, // Description.
'post_author' => $new_post_author->ID,
];
wp_update_post( wp_slash( $cloned_child ) );
Expand Down

0 comments on commit bc287e0

Please sign in to comment.