WordPress.org

Make WordPress Core

Ticket #23600: 23600.2.patch

File 23600.2.patch, 2.1 KB (added by lancewillett, 5 years ago)

A few minor fixes, also align assignments

  • wp-content/themes/twentytwelve/js/theme-customizer.js

     
    1717                        $( '.site-description' ).text( to );
    1818                } );
    1919        } );
    20 
     20        // Header text color
     21        wp.customize( 'header_textcolor', function( value ) {
     22                value.bind( function( to ) {
     23                        $( '.site-title a, .site-description' ).css( 'color', to );
     24                } );
     25        } );
     26 
    2127        // Hook into background color/image change and adjust body class value as needed.
    2228        wp.customize( 'background_color', function( value ) {
    2329                value.bind( function( to ) {
  • wp-content/themes/twentytwelve/functions.php

     
    437437 * @return void
    438438 */
    439439function twentytwelve_customize_register( $wp_customize ) {
    440         $wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
    441         $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
     440        $wp_customize->get_setting( 'blogname' )->transport         = 'postMessage';
     441        $wp_customize->get_setting( 'blogdescription' )->transport  = 'postMessage';
     442        $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
    442443}
    443444add_action( 'customize_register', 'twentytwelve_customize_register' );
    444445
  • wp-content/themes/twentytwelve/inc/custom-header.php

     
    7777                // If the user has set a custom color for the text, use that.
    7878                else :
    7979        ?>
    80                 .site-title a,
    81                 .site-description {
    82                         color: #<?php echo $text_color; ?> !important;
     80                .site-header h1 a,
     81                .site-header h2 {
     82                        color: #<?php echo $text_color; ?>;
    8383                }
    8484        <?php endif; ?>
    8585        </style>