Make WordPress Core

Changeset 23429


Ignore:
Timestamp:
02/15/2013 04:53:58 PM (14 years ago)
Author:
lancewillett
Message:

Twenty Eleven and Twenty Twelve: use .text() instead of .html() for blogname and blogdescription in Theme Customizer JavaScript handlers. Fixes #23435, props mfields.

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

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/inc/theme-customizer.js

    r22316 r23429  
    22        wp.customize( 'blogname', function( value ) {
    33                value.bind( function( to ) {
    4                         $( '#site-title a' ).html( to );
     4                        $( '#site-title a' ).text( to );
    55                } );
    66        } );
    77        wp.customize( 'blogdescription', function( value ) {
    88                value.bind( function( to ) {
    9                         $( '#site-description' ).html( to );
     9                        $( '#site-description' ).text( to );
    1010                } );
    1111        } );
  • trunk/wp-content/themes/twentytwelve/js/theme-customizer.js

    r22318 r23429  
    1010        wp.customize( 'blogname', function( value ) {
    1111                value.bind( function( to ) {
    12                         $( '.site-title a' ).html( to );
     12                        $( '.site-title a' ).text( to );
    1313                } );
    1414        } );
    1515        wp.customize( 'blogdescription', function( value ) {
    1616                value.bind( function( to ) {
    17                         $( '.site-description' ).html( to );
     17                        $( '.site-description' ).text( to );
    1818                } );
    1919        } );
Note: See TracChangeset for help on using the changeset viewer.