From 79a6a23da2fe474200c68743e620813bf6c4d242 Mon Sep 17 00:00:00 2001 From: Michael Fields Date: Thu, 7 Feb 2013 10:50:34 -0800 Subject: [PATCH] Use .text() instead of .html() for site title and tagline when modified via the customizer. Neither setting supports html. --- js/customizer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/customizer.js b/js/customizer.js index 9712cde9..df2a8f78 100644 --- a/js/customizer.js +++ b/js/customizer.js @@ -8,12 +8,12 @@ // Site title and description. wp.customize( 'blogname', function( value ) { value.bind( function( to ) { - $( '.site-title a' ).html( to ); + $( '.site-title a' ).text( to ); } ); } ); wp.customize( 'blogdescription', function( value ) { value.bind( function( to ) { - $( '.site-description' ).html( to ); + $( '.site-description' ).text( to ); } ); } ); } )( jQuery ); \ No newline at end of file