WordPress.org

Make WordPress Core

Changeset 24001


Ignore:
Timestamp:
04/16/2013 05:18:30 PM (8 years ago)
Author:
lancewillett
Message:

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

Location:
trunk/wp-content/themes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/functions.php

    r23899 r24001  
    225225    // If we get this far, we have custom styles. Let's do this.
    226226    ?>
    227     <style type="text/css">
     227    <style type="text/css" id="twentyeleven-header-css">
    228228    <?php
    229229        // Has the text been hidden?
     
    260260function twentyeleven_admin_header_style() {
    261261?>
    262     <style type="text/css">
     262    <style type="text/css" id="twentyeleven-admin-header-css">
    263263    .appearance_page_custom-header #headimg {
    264264        border: none;
  • trunk/wp-content/themes/twentyten/functions.php

    r23826 r24001  
    201201function twentyten_admin_header_style() {
    202202?>
    203 <style type="text/css">
     203<style type="text/css" id="twentyten-header-css">
    204204/* Shows the same border as on front end */
    205205#headimg {
  • trunk/wp-content/themes/twentythirteen/inc/custom-header.php

    r23680 r24001  
    8181    // If we get this far, we have custom styles.
    8282    ?>
    83     <style type="text/css">
     83    <style type="text/css" id="twentythirteen-header-css">
    8484    <?php
    8585        if ( ! empty( $header_image ) ) :
     
    130130    $header_image = get_header_image();
    131131?>
    132     <style type="text/css">
     132    <style type="text/css" id="twentythirteen-admin-header-css">
    133133    .appearance_page_custom-header #headimg {
    134134        border: none;
  • trunk/wp-content/themes/twentytwelve/inc/custom-header.php

    r23717 r24001  
    7777    // If we get this far, we have custom styles.
    7878    ?>
    79     <style type="text/css">
     79    <style type="text/css" id="twentytwelve-header-css">
    8080    <?php
    8181        // Has the text been hidden?
     
    108108function twentytwelve_admin_header_style() {
    109109?>
    110     <style type="text/css">
     110    <style type="text/css" id="twentytwelve-header-css">
    111111    .appearance_page_custom-header #headimg {
    112112        border: none;
Note: See TracChangeset for help on using the changeset viewer.