X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/f5fcdc7994bb67cce809bc4777944ae8b7fad4a4..refs/tags/wordpress-4.3:/wp-content/themes/twentyfifteen/inc/custom-header.php diff --git a/wp-content/themes/twentyfifteen/inc/custom-header.php b/wp-content/themes/twentyfifteen/inc/custom-header.php index 34994a9f..10d0ef1a 100644 --- a/wp-content/themes/twentyfifteen/inc/custom-header.php +++ b/wp-content/themes/twentyfifteen/inc/custom-header.php @@ -133,7 +133,14 @@ function twentyfifteen_header_style() { if ( ! empty( $header_image ) ) : ?> .site-header { - background: url() no-repeat 50% 50%; + + /* + * No shorthand so the Customizer can override individual properties. + * @see https://core.trac.wordpress.org/ticket/31460 + */ + background-image: url(); + background-repeat: no-repeat; + background-position: 50% 50%; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; @@ -142,7 +149,14 @@ function twentyfifteen_header_style() { @media screen and (min-width: 59.6875em) { body:before { - background: url() no-repeat 100% 50%; + + /* + * No shorthand so the Customizer can override individual properties. + * @see https://core.trac.wordpress.org/ticket/31460 + */ + background-image: url(); + background-repeat: no-repeat; + background-position: 100% 50%; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover;