forked from mirror/_s
Use .text() instead of .html() for site title and tagline when modified via the customizer. Neither setting supports html.
This commit is contained in:
parent
9f58e3f6e2
commit
79a6a23da2
|
@ -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 );
|
Reference in New Issue