Make WordPress Core

Changeset 24050


Ignore:
Timestamp:
04/22/2013 07:40:28 PM (11 years ago)
Author:
nacin
Message:

Add .displaying-header-text to the default themes, as the Custom Header page toggles this class. props obenland, fixes #24113.

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

Legend:

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

    r24001 r24050  
    318318            $style = ' style="display:none"';
    319319        ?>
    320         <h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
    321         <div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
     320        <h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
     321        <div id="desc" class="displaying-header-text"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
    322322        <?php if ( $image ) : ?>
    323323            <img src="<?php echo esc_url( $image ); ?>" alt="" />
  • trunk/wp-content/themes/twentythirteen/inc/custom-header.php

    r24001 r24050  
    197197        <?php $style = ' style="color:#' . get_header_textcolor() . ';"'; ?>
    198198        <div class="hgroup">
    199             <h1><a id="name"<?php echo $style; ?> onclick="return false;" href="#"><?php bloginfo( 'name' ); ?></a></h1>
    200             <h2 id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2>
     199            <h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="#"><?php bloginfo( 'name' ); ?></a></h1>
     200            <h2 id="desc" class="displaying-header-text"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2>
    201201        </div>
    202202    </div>
  • trunk/wp-content/themes/twentytwelve/inc/custom-header.php

    r24016 r24050  
    156156            $style = ' style="color:#' . get_header_textcolor() . ';"';
    157157        ?>
    158         <h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
    159         <h2 id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2>
     158        <h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
     159        <h2 id="desc" class="displaying-header-text"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2>
    160160        <?php $header_image = get_header_image();
    161161        if ( ! empty( $header_image ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.