diff --git a/wp-content/themes/twentyeleven/functions.php b/wp-content/themes/twentyeleven/functions.php index 908fa6fc88..0508e617b7 100644 --- a/wp-content/themes/twentyeleven/functions.php +++ b/wp-content/themes/twentyeleven/functions.php @@ -251,7 +251,7 @@ function twentyeleven_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); } @@ -261,7 +261,7 @@ function twentyeleven_header_style() { ?> #site-title a, #site-description { - color: # !important; + color: #; } diff --git a/wp-content/themes/twentyeleven/inc/theme-customizer.js b/wp-content/themes/twentyeleven/inc/theme-customizer.js index ea19f49932..002fc97950 100644 --- a/wp-content/themes/twentyeleven/inc/theme-customizer.js +++ b/wp-content/themes/twentyeleven/inc/theme-customizer.js @@ -9,4 +9,22 @@ $( '#site-description' ).text( to ); } ); } ); + + // Header text color + wp.customize( 'header_textcolor', function( value ) { + value.bind( function( to ) { + if ( 'blank' === to ) { + $( '#site-title, #site-title a, #site-description' ).css( { + 'clip': 'rect(1px, 1px, 1px, 1px)', + 'position': 'absolute' + } ); + } else { + $( '#site-title, #site-title a, #site-description' ).css( { + 'clip': 'auto', + 'color': to, + 'position': 'relative' + } ); + } + } ); + } ); } )( jQuery ); \ No newline at end of file diff --git a/wp-content/themes/twentyeleven/inc/theme-options.php b/wp-content/themes/twentyeleven/inc/theme-options.php index 59f5140ee6..58813b01a6 100644 --- a/wp-content/themes/twentyeleven/inc/theme-options.php +++ b/wp-content/themes/twentyeleven/inc/theme-options.php @@ -508,6 +508,7 @@ add_filter( 'body_class', 'twentyeleven_layout_classes' ); function twentyeleven_customize_register( $wp_customize ) { $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; + $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; $options = twentyeleven_get_theme_options(); $defaults = twentyeleven_get_default_theme_options(); @@ -581,6 +582,6 @@ add_action( 'customize_register', 'twentyeleven_customize_register' ); * @since Twenty Eleven 1.3 */ function twentyeleven_customize_preview_js() { - wp_enqueue_script( 'twentyeleven-customizer', get_template_directory_uri() . '/inc/theme-customizer.js', array( 'customize-preview' ), '20120523', true ); + wp_enqueue_script( 'twentyeleven-customizer', get_template_directory_uri() . '/inc/theme-customizer.js', array( 'customize-preview' ), '20150401', true ); } add_action( 'customize_preview_init', 'twentyeleven_customize_preview_js' ); \ No newline at end of file diff --git a/wp-content/themes/twentyeleven/style.css b/wp-content/themes/twentyeleven/style.css index e5392f77e8..b366a5c0a6 100644 --- a/wp-content/themes/twentyeleven/style.css +++ b/wp-content/themes/twentyeleven/style.css @@ -2452,6 +2452,9 @@ p.comment-form-comment { #access ul { font-size: 12px; } + #branding .only-search + #access div { + padding-right: 0; + } article.intro .entry-content { font-size: 12px; } diff --git a/wp-includes/version.php b/wp-includes/version.php index eff2bb709c..6df4e8f47b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-beta3-31970'; +$wp_version = '4.2-beta3-31971'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.