wp/wp-admin/includes/class-custom-background.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
--- a/wp/wp-admin/includes/class-custom-background.php	Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-admin/includes/class-custom-background.php	Tue Sep 27 16:37:53 2022 +0200
@@ -90,7 +90,7 @@
 					'<p>' . __( 'You can customize the look of your site without touching any of your theme&#8217;s code by using a custom background. Your background can be an image or a color.' ) . '</p>' .
 					'<p>' . __( 'To use a background image, simply upload it or choose an image that has already been uploaded to your Media Library by clicking the &#8220;Choose Image&#8221; button. You can display a single instance of your image, or tile it to fill the screen. You can have your background fixed in place, so your site content moves on top of it, or you can have it scroll with your site.' ) . '</p>' .
 					'<p>' . __( 'You can also choose a background color by clicking the Select Color button and either typing in a legitimate HTML hex value, e.g. &#8220;#ff0000&#8221; for red, or by choosing a color using the color picker.' ) . '</p>' .
-					'<p>' . __( 'Don&#8217;t forget to click on the Save Changes button when you are finished.' ) . '</p>',
+					'<p>' . __( 'Do not forget to click on the Save Changes button when you are finished.' ) . '</p>',
 			)
 		);
 
@@ -510,8 +510,8 @@
 		$file     = $file['file'];
 		$filename = wp_basename( $file );
 
-		// Construct the object array.
-		$object = array(
+		// Construct the attachment array.
+		$attachment = array(
 			'post_title'     => $filename,
 			'post_content'   => $url,
 			'post_mime_type' => $type,
@@ -520,7 +520,7 @@
 		);
 
 		// Save the data.
-		$id = wp_insert_attachment( $object, $file );
+		$id = wp_insert_attachment( $attachment, $file );
 
 		// Add the metadata.
 		wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );