Skip to content

Commit bc287e0

Browse files
Document the fields.
1 parent fa41b67 commit bc287e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin-functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,8 @@ function duplicate_post_copy_attachments( $new_id, $post ) {
488488
$cloned_child = [
489489
'ID' => $new_attachment_id,
490490
'post_title' => $child->post_title,
491-
'post_excerpt' => $child->post_excerpt,
492-
'post_content' => $child->post_content,
491+
'post_excerpt' => $child->post_excerpt, // Caption.
492+
'post_content' => $child->post_content, // Description.
493493
'post_author' => $new_post_author->ID,
494494
];
495495
wp_update_post( wp_slash( $cloned_child ) );

0 commit comments

Comments
 (0)