Skip to content
Browse files

fix the js for fast preview

  • Loading branch information...
1 parent e33b962 commit 8c2c9115d31c85497899373d35d9fd4083390fc0 @bueltge committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 js/theme-customizer.js
View
5 js/theme-customizer.js
@@ -9,12 +9,13 @@
var api = wp.customize;
// Site title and description.
- wp.customize( 'blogname', function( value ) {
+ api( 'blogname', function( value ) {
value.bind( function( to ) {
$( '#header h1 a, #footer a.site-name' ).html( to );
} );
} );
- wp.customize( 'blogdescription', function( value ) {
+
+ api( 'blogdescription', function( value ) {
value.bind( function( to ) {
$( '#header p.site-description' ).html( to );
} );

0 comments on commit 8c2c911

Please sign in to comment.
Something went wrong with that request. Please try again.