]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentyfifteen/inc/custom-header.php
WordPress 4.3
[autoinstalls/wordpress.git] / wp-content / themes / twentyfifteen / inc / custom-header.php
index 34994a9f1c04b2cda746ee212706e59258455bfe..10d0ef1a09a48d5c7a0eb8b3bb28b4668e740128 100644 (file)
@@ -133,7 +133,14 @@ function twentyfifteen_header_style() {
                if ( ! empty( $header_image ) ) :
        ?>
                .site-header {
                if ( ! empty( $header_image ) ) :
        ?>
                .site-header {
-                       background: url(<?php header_image(); ?>) no-repeat 50% 50%;
+
+                       /*
+                        * No shorthand so the Customizer can override individual properties.
+                        * @see https://core.trac.wordpress.org/ticket/31460
+                        */
+                       background-image: url(<?php header_image(); ?>);
+                       background-repeat: no-repeat;
+                       background-position: 50% 50%;
                        -webkit-background-size: cover;
                        -moz-background-size:    cover;
                        -o-background-size:      cover;
                        -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 {
 
                @media screen and (min-width: 59.6875em) {
                        body:before {
-                               background: url(<?php header_image(); ?>) no-repeat 100% 50%;
+
+                               /*
+                                * No shorthand so the Customizer can override individual properties.
+                                * @see https://core.trac.wordpress.org/ticket/31460
+                                */
+                               background-image: url(<?php header_image(); ?>);
+                               background-repeat: no-repeat;
+                               background-position: 100% 50%;
                                -webkit-background-size: cover;
                                -moz-background-size:    cover;
                                -o-background-size:      cover;
                                -webkit-background-size: cover;
                                -moz-background-size:    cover;
                                -o-background-size:      cover;