Ticket #23435: 23435.diff

File 23435.diff, 1.4 KB (added by mfields, 3 months ago)
  • wp-content/themes/twentytwelve/js/theme-customizer.js

     
    99        // Site title and description. 
    1010        wp.customize( 'blogname', function( value ) { 
    1111                value.bind( function( to ) { 
    12                         $( '.site-title a' ).html( to ); 
     12                        $( '.site-title a' ).text( to ); 
    1313                } ); 
    1414        } ); 
    1515        wp.customize( 'blogdescription', function( value ) { 
    1616                value.bind( function( to ) { 
    17                         $( '.site-description' ).html( to ); 
     17                        $( '.site-description' ).text( to ); 
    1818                } ); 
    1919        } ); 
    2020 
  • wp-content/themes/twentyeleven/inc/theme-customizer.js

     
    11( function( $ ){ 
    22        wp.customize( 'blogname', function( value ) { 
    33                value.bind( function( to ) { 
    4                         $( '#site-title a' ).html( to ); 
     4                        $( '#site-title a' ).text( to ); 
    55                } ); 
    66        } ); 
    77        wp.customize( 'blogdescription', function( value ) { 
    88                value.bind( function( to ) { 
    9                         $( '#site-description' ).html( to ); 
     9                        $( '#site-description' ).text( to ); 
    1010                } ); 
    1111        } ); 
    1212} )( jQuery ); 
     13 No newline at end of file