wp/wp-admin/includes/class-custom-background.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
--- a/wp/wp-admin/includes/class-custom-background.php	Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-admin/includes/class-custom-background.php	Fri Sep 05 18:52:52 2025 +0200
@@ -17,16 +17,16 @@
 	/**
 	 * Callback for administration header.
 	 *
+	 * @since 3.0.0
 	 * @var callable
-	 * @since 3.0.0
 	 */
 	public $admin_header_callback;
 
 	/**
 	 * Callback for header div.
 	 *
+	 * @since 3.0.0
 	 * @var callable
-	 * @since 3.0.0
 	 */
 	public $admin_image_div_callback;
 
@@ -288,7 +288,7 @@
 			$background_styles = '';
 			$bgcolor           = get_background_color();
 			if ( $bgcolor ) {
-				$background_styles .= 'background-color: #' . $bgcolor . ';';
+				$background_styles .= 'background-color: ' . maybe_hash_hex_color( $bgcolor ) . ';';
 			}
 
 			$background_image_thumb = get_background_image();
@@ -354,7 +354,7 @@
 		<input type="file" id="upload" name="import" />
 		<input type="hidden" name="action" value="save" />
 			<?php wp_nonce_field( 'custom-background-upload', '_wpnonce-custom-background-upload' ); ?>
-			<?php submit_button( __( 'Upload' ), '', 'submit', false ); ?>
+			<?php submit_button( _x( 'Upload', 'verb' ), '', 'submit', false ); ?>
 	</p>
 	<p>
 		<label for="choose-from-library-link"><?php _e( 'Or choose an image from your media library:' ); ?></label><br />