From 8ceefdcdeb6006566ffa3fee5017520a2580c377 Mon Sep 17 00:00:00 2001 From: Takashi Irie Date: Mon, 22 Apr 2013 16:47:14 +0100 Subject: [PATCH 1/2] Fixes the broken display header text option in the Customizer. --- inc/custom-header.php | 9 ++------- inc/customizer.php | 2 +- js/customizer.js | 15 +++++++++++++-- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/inc/custom-header.php b/inc/custom-header.php index 22a587ab..71215795 100644 --- a/inc/custom-header.php +++ b/inc/custom-header.php @@ -105,7 +105,7 @@ function _s_header_style() { ?> .site-title, .site-description { - position: absolute !important; + position: absolute; clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip: rect(1px, 1px, 1px, 1px); } @@ -159,12 +159,7 @@ if ( ! function_exists( '_s_admin_header_image' ) ) : */ function _s_admin_header_image() { ?>
- +

onclick="return false;" href="">

>
Date: Wed, 8 May 2013 12:27:48 +0100 Subject: [PATCH 2/2] Fix unlinked site title in the Customizer --- inc/customizer.php | 2 +- js/customizer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/customizer.php b/inc/customizer.php index f821f8ba..e704cf58 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -21,6 +21,6 @@ add_action( 'customize_register', '_s_customize_register' ); * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. */ 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' ); diff --git a/js/customizer.js b/js/customizer.js index 888c1d48..344e191f 100644 --- a/js/customizer.js +++ b/js/customizer.js @@ -8,7 +8,7 @@ // Site title and description. wp.customize( 'blogname', function( value ) { value.bind( function( to ) { - $( '.site-title' ).text( to ); + $( '.site-title a' ).text( to ); } ); } ); wp.customize( 'blogdescription', function( value ) {