wp-content/themes/twentyfifteen/inc/custom-header.php:88Styles the header image and text displayed on the blog.
function twentyfifteen_header_style() { $header_image = get_header_image(); // If no custom options for text are set, let's bail. if ( empty( $header_image ) && display_header_text() ) { return; } // If we get this far, we have custom styles. Let's do this. ?> <style type="text/css" id="twentyfifteen-header-css"> <?php // Short header for when there is no Custom Header and Header Text is hidden. if ( empty( $header_image ) && ! display_header_text() ) : ?> .site-header { padding-top: 14px; padding-bottom: 14px; } .site-branding { min-height: 42px; } @media screen and (min-width: 46.25em) { .site-header { padding-top: 21px; padding-bottom: 21px; } .site-branding { min-height: 56px; } } @media screen and (min-width: 55em) { .site-header { padding-top: 25px; padding-bottom: 25px; } .site-branding { min-height: 62px; } } @media screen and (min-width: 59.6875em) { .site-header { padding-top: 0; padding-bottom: 0; } .site-branding { min-height: 0; } } <?php endif; // Has a Custom Header been added? if ( ! empty( $header_image ) ) : ?> .site-header { /* * 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; background-size: cover; } @media screen and (min-width: 59.6875em) { body:before { /* * No shorthand so the Customizer can override individual properties. * @see https://core.trac.wordpress.org/ticket/31460 */ background-image: url(<?php header_image(); ?>);Introduced in Twenty Fifteen 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentyfifteen/inc/custom-header.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.