diff --git a/wp-admin/custom-background.php b/wp-admin/custom-background.php index 0c515c22f9..cbc96bc396 100644 --- a/wp-admin/custom-background.php +++ b/wp-admin/custom-background.php @@ -278,8 +278,9 @@ class Custom_Background { if ( $bgcolor = get_background_color() ) $background_styles .= 'background-color: #' . $bgcolor . ';'; - if ( get_background_image() ) { - $background_image_thumb = esc_url( set_url_scheme( get_theme_mod( 'background_image_thumb', str_replace( '%', '%%', get_background_image() ) ) ) ); + $background_image_thumb = get_background_image(); + if ( $background_image_thumb ) { + $background_image_thumb = esc_url( set_url_scheme( get_theme_mod( 'background_image_thumb', str_replace( '%', '%%', $background_image_thumb ) ) ) ); // Background-image URL must be single quote, see below. $background_styles .= ' background-image: url(\'' . $background_image_thumb . '\');' @@ -288,7 +289,7 @@ class Custom_Background { } ?>
- +
diff --git a/wp-includes/version.php b/wp-includes/version.php index 44dd4b9f20..d286c39bc2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31128'; +$wp_version = '4.2-alpha-31129'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.