From 32ca2518b37f9a469b243e3846af920e69fb3730 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Fri, 15 Feb 2013 16:53:58 +0000 Subject: [PATCH] Twenty Eleven and Twenty Twelve: use `.text()` instead of `.html()` for `blogname` and `blogdescription` in Theme Customizer JavaScript handlers. Fixes #23435, props mfields. git-svn-id: https://develop.svn.wordpress.org/trunk@23429 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentyeleven/inc/theme-customizer.js | 4 ++-- wp-content/themes/twentytwelve/js/theme-customizer.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/twentyeleven/inc/theme-customizer.js b/wp-content/themes/twentyeleven/inc/theme-customizer.js index ca63fdad42..ea19f49932 100644 --- a/wp-content/themes/twentyeleven/inc/theme-customizer.js +++ b/wp-content/themes/twentyeleven/inc/theme-customizer.js @@ -1,12 +1,12 @@ ( function( $ ){ 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 diff --git a/wp-content/themes/twentytwelve/js/theme-customizer.js b/wp-content/themes/twentytwelve/js/theme-customizer.js index c1018b05cc..607ea883ee 100644 --- a/wp-content/themes/twentytwelve/js/theme-customizer.js +++ b/wp-content/themes/twentytwelve/js/theme-customizer.js @@ -9,12 +9,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 ); } ); } );