From 0c69e9f00d0a30111d01e21bb924c4911f19f865 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: http://core.svn.wordpress.org/trunk@23429 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 ); } ); } );