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
This commit is contained in:
parent
0fe1f7575d
commit
0c69e9f00d
|
@ -1,12 +1,12 @@
|
||||||
( function( $ ){
|
( function( $ ){
|
||||||
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 );
|
|
@ -9,12 +9,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 );
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue