@@ -142,7 +142,7 @@ function duplicate_post_plugin_upgrade() {
142142 'new_draft ' => '1 ' ,
143143 'clone ' => '1 ' ,
144144 'rewrite_republish ' => '1 ' ,
145- ]
145+ ],
146146 );
147147 add_option ( 'duplicate_post_show_link_in ' , $ show_links_in_defaults );
148148
@@ -228,7 +228,7 @@ function duplicate_post_show_update_notice() {
228228 $ title = sprintf (
229229 /* translators: %s: Yoast Duplicate Post. */
230230 esc_html__ ( 'You \'ve successfully installed %s! ' , 'duplicate-post ' ),
231- 'Yoast Duplicate Post '
231+ 'Yoast Duplicate Post ' ,
232232 );
233233
234234 $ img_path = plugins_url ( '/duplicate_post_yoast_icon-125x125.png ' , __FILE__ );
@@ -453,7 +453,7 @@ function duplicate_post_copy_attachments( $new_id, $post ) {
453453 'numberposts ' => -1 ,
454454 'post_status ' => 'any ' ,
455455 'post_parent ' => $ post ->ID ,
456- ]
456+ ],
457457 );
458458 // Clone old attachments.
459459 foreach ( $ children as $ child ) {
@@ -518,7 +518,7 @@ function duplicate_post_copy_children( $new_id, $post, $status = '' ) {
518518 'numberposts ' => -1 ,
519519 'post_status ' => 'any ' ,
520520 'post_parent ' => $ post ->ID ,
521- ]
521+ ],
522522 );
523523
524524 foreach ( $ children as $ child ) {
@@ -543,7 +543,7 @@ function duplicate_post_copy_comments( $new_id, $post ) {
543543 'post_id ' => $ post ->ID ,
544544 'order ' => 'ASC ' ,
545545 'orderby ' => 'comment_date_gmt ' ,
546- ]
546+ ],
547547 );
548548
549549 $ old_id_to_new = [];
@@ -619,8 +619,8 @@ function duplicate_post_create_duplicate( $post, $status = '', $parent_id = '' )
619619 wp_die (
620620 esc_html (
621621 __ ( 'Copy features for this post type are not enabled in options page ' , 'duplicate-post ' ) . ': '
622- . $ post ->post_type
623- )
622+ . $ post ->post_type ,
623+ ),
624624 );
625625 }
626626
0 commit comments