diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index 623a1fad29..eee3f1f1a6 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -554,7 +554,14 @@ class Custom_Image_Header { call_user_func( $this->admin_image_div_callback ); } else { $custom_header = get_custom_header(); - $header_image_style = 'background-image:url(' . esc_url( get_header_image() ) . ');'; + $header_image = get_header_image(); + + if ( $header_image ) { + $header_image_style = 'background-image:url(' . esc_url( $header_image ) . ');'; + } else { + $header_image_style = ''; + } + if ( $custom_header->width ) $header_image_style .= 'max-width:' . $custom_header->width . 'px;'; if ( $custom_header->height ) diff --git a/wp-includes/version.php b/wp-includes/version.php index d286c39bc2..6b0454d26a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31129'; +$wp_version = '4.2-alpha-31130'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.