| Conditions | 1 |
| Paths | 1 |
| Total Lines | 36 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | /** |
||
| 7 | ( function( $ ) { |
||
| 8 | // Site title and description. |
||
| 9 | wp.customize( 'blogname', function( value ) { |
||
|
|
|||
| 10 | value.bind( function( to ) { |
||
| 11 | $( '.site-title' ).text( to ); |
||
| 12 | } ); |
||
| 13 | } ); |
||
| 14 | wp.customize( 'blogdescription', function( value ) { |
||
| 15 | value.bind( function( to ) { |
||
| 16 | $( '.site-description' ).text( to ); |
||
| 17 | } ); |
||
| 18 | } ); |
||
| 19 | // Header text color. |
||
| 20 | wp.customize( 'header_textcolor', function( value ) { |
||
| 21 | value.bind( function( to ) { |
||
| 22 | if ( 'blank' === to ) { |
||
| 23 | $( '.site-title, .site-description' ).css( { |
||
| 24 | 'clip': 'rect(1px, 1px, 1px, 1px)', |
||
| 25 | 'position': 'absolute' |
||
| 26 | } ); |
||
| 27 | } else { |
||
| 28 | $( '.site-title, .site-description' ).css( { |
||
| 29 | 'clip': 'auto', |
||
| 30 | 'position': 'static' |
||
| 31 | } ); |
||
| 32 | |||
| 33 | $( '.site-title a, .site-description' ).css( { |
||
| 34 | 'color': to |
||
| 35 | } ); |
||
| 36 | $( '.site-title a' ).css( { |
||
| 37 | 'border-color': to |
||
| 38 | } ); |
||
| 39 | } |
||
| 40 | } ); |
||
| 41 | } ); |
||
| 42 | } )( jQuery ); |
||
| 43 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.