Bundled themes: add identifier to `style` elements added by the theme. Fixes #24033.

git-svn-id: http://core.svn.wordpress.org/trunk@24001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-04-16 17:18:30 +00:00
parent 508cbd464b
commit 245c2111f0
4 changed files with 7 additions and 7 deletions

View File

@ -224,7 +224,7 @@ function twentyeleven_header_style() {
// If we get this far, we have custom styles. Let's do this. // If we get this far, we have custom styles. Let's do this.
?> ?>
<style type="text/css"> <style type="text/css" id="twentyeleven-header-css">
<?php <?php
// Has the text been hidden? // Has the text been hidden?
if ( 'blank' == $text_color ) : if ( 'blank' == $text_color ) :
@ -259,7 +259,7 @@ if ( ! function_exists( 'twentyeleven_admin_header_style' ) ) :
*/ */
function twentyeleven_admin_header_style() { function twentyeleven_admin_header_style() {
?> ?>
<style type="text/css"> <style type="text/css" id="twentyeleven-admin-header-css">
.appearance_page_custom-header #headimg { .appearance_page_custom-header #headimg {
border: none; border: none;
} }

View File

@ -200,7 +200,7 @@ if ( ! function_exists( 'twentyten_admin_header_style' ) ) :
*/ */
function twentyten_admin_header_style() { function twentyten_admin_header_style() {
?> ?>
<style type="text/css"> <style type="text/css" id="twentyten-header-css">
/* Shows the same border as on front end */ /* Shows the same border as on front end */
#headimg { #headimg {
border-bottom: 1px solid #000; border-bottom: 1px solid #000;

View File

@ -80,7 +80,7 @@ function twentythirteen_header_style() {
// If we get this far, we have custom styles. // If we get this far, we have custom styles.
?> ?>
<style type="text/css"> <style type="text/css" id="twentythirteen-header-css">
<?php <?php
if ( ! empty( $header_image ) ) : if ( ! empty( $header_image ) ) :
?> ?>
@ -129,7 +129,7 @@ function twentythirteen_header_style() {
function twentythirteen_admin_header_style() { function twentythirteen_admin_header_style() {
$header_image = get_header_image(); $header_image = get_header_image();
?> ?>
<style type="text/css"> <style type="text/css" id="twentythirteen-admin-header-css">
.appearance_page_custom-header #headimg { .appearance_page_custom-header #headimg {
border: none; border: none;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;

View File

@ -76,7 +76,7 @@ function twentytwelve_header_style() {
// If we get this far, we have custom styles. // If we get this far, we have custom styles.
?> ?>
<style type="text/css"> <style type="text/css" id="twentytwelve-header-css">
<?php <?php
// Has the text been hidden? // Has the text been hidden?
if ( ! display_header_text() ) : if ( ! display_header_text() ) :
@ -107,7 +107,7 @@ function twentytwelve_header_style() {
*/ */
function twentytwelve_admin_header_style() { function twentytwelve_admin_header_style() {
?> ?>
<style type="text/css"> <style type="text/css" id="twentytwelve-header-css">
.appearance_page_custom-header #headimg { .appearance_page_custom-header #headimg {
border: none; border: none;
font-family: "Open Sans", Helvetica, Arial, sans-serif; font-family: "Open Sans", Helvetica, Arial, sans-serif;