diff --git a/wp-admin/custom-background.php b/wp-admin/custom-background.php index da95c56fc..c468f3485 100644 --- a/wp-admin/custom-background.php +++ b/wp-admin/custom-background.php @@ -154,18 +154,19 @@ class Custom_Background { - -
+?> +

@@ -325,6 +326,10 @@ class Custom_Background { $thumbnail = wp_get_attachment_image_src( $id, 'thumbnail' ); set_theme_mod('background_image_thumb', esc_url( $thumbnail[0] ) ); + + set_theme_mod('background_position', get_theme_mod('background_position', 'left') ); + set_theme_mod('background_repeat', get_theme_mod('background_repeat', 'tile') ); + set_theme_mod('background-attachment', get_theme_mod('background_position', 'fixed') ); do_action('wp_create_file_in_uploads', $file, $id); // For replication $this->updated = true;