forked from mirror/_s
Fix unlinked site title in the Customizer
This commit is contained in:
parent
8ceefdcdeb
commit
f367fefd72
|
@ -21,6 +21,6 @@ add_action( 'customize_register', '_s_customize_register' );
|
||||||
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
||||||
*/
|
*/
|
||||||
function _s_customize_preview_js() {
|
function _s_customize_preview_js() {
|
||||||
wp_enqueue_script( '_s_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20130422', true );
|
wp_enqueue_script( '_s_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20130508', true );
|
||||||
}
|
}
|
||||||
add_action( 'customize_preview_init', '_s_customize_preview_js' );
|
add_action( 'customize_preview_init', '_s_customize_preview_js' );
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
// 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' ).text( to );
|
$( '.site-title a' ).text( to );
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
wp.customize( 'blogdescription', function( value ) {
|
wp.customize( 'blogdescription', function( value ) {
|
||||||
|
|
Reference in New Issue