diff -r be944660c56a -r 3d72ae0968f4 wp/wp-admin/includes/import.php --- a/wp/wp-admin/includes/import.php Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-admin/includes/import.php Tue Sep 27 16:37:53 2022 +0200 @@ -103,8 +103,8 @@ return $upload; } - // Construct the object array. - $object = array( + // Construct the attachment array. + $attachment = array( 'post_title' => wp_basename( $upload['file'] ), 'post_content' => $upload['url'], 'post_mime_type' => $upload['type'], @@ -114,7 +114,7 @@ ); // Save the data. - $id = wp_insert_attachment( $object, $upload['file'] ); + $id = wp_insert_attachment( $attachment, $upload['file'] ); /* * Schedule a cleanup for one day from now in case of failed