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
This commit is contained in:
parent
db3d33ac0a
commit
32ca2518b3
@ -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 );
|
@ -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 );
|
||||
} );
|
||||
} );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user