Skip to content

Commit

Permalink
Merge pull request #374 from masteradhoc/patch-2
Browse files Browse the repository at this point in the history
fix post excerpt typo
  • Loading branch information
enricobattocchi authored Jul 22, 2024
2 parents 5c62df0 + bc287e0 commit 3080bae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,8 @@ function duplicate_post_copy_attachments( $new_id, $post ) {
$cloned_child = [
'ID' => $new_attachment_id,
'post_title' => $child->post_title,
'post_exceprt' => $child->post_title,
'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 3080bae

Please sign in to comment.