Use .text() instead of .html() for site title and tagline when modified via the customizer. Neither setting supports html.

This commit is contained in:
Michael Fields 2013-02-07 10:50:34 -08:00
parent 9f58e3f6e2
commit 79a6a23da2
1 changed files with 2 additions and 2 deletions

View File

@ -8,12 +8,12 @@
// Site title and description. // Site title and description.
wp.customize( 'blogname', function( value ) { wp.customize( 'blogname', function( value ) {
value.bind( function( to ) { value.bind( function( to ) {
$( '.site-title a' ).html( to ); $( '.site-title a' ).text( to );
} ); } );
} ); } );
wp.customize( 'blogdescription', function( value ) { wp.customize( 'blogdescription', function( value ) {
value.bind( function( to ) { value.bind( function( to ) {
$( '.site-description' ).html( to ); $( '.site-description' ).text( to );
} ); } );
} ); } );
} )( jQuery ); } )( jQuery );