WordPress.org

Make WordPress Core

Ticket #49666: 49666.diff

File 49666.diff, 1.8 KB (added by deepaklalwani, 15 months ago)
  • src/wp-includes/customize/class-wp-customize-site-icon-control.php

    diff --git src/wp-includes/customize/class-wp-customize-site-icon-control.php src/wp-includes/customize/class-wp-customize-site-icon-control.php
    index d21395c39c..e57e955be7 100644
    class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control 
    6868                                                        <div class="favicon">
    6969                                                                <img src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
    7070                                                        </div>
    71                                                         <span class="browser-title" aria-hidden="true"><# print( '<?php bloginfo( 'name' ); ?>' ) #></span>
     71                                                        <span class="browser-title" aria-hidden="true"><# print( '<?php str_replace( '\\', '\\\\', get_bloginfo( 'name' ) ); ?>' ) #></span>
    7272                                                </div>
    7373                                                <img class="app-icon-preview" src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>"/>
    7474                                        </div>
  • src/wp-includes/media-template.php

    diff --git src/wp-includes/media-template.php src/wp-includes/media-template.php
    index 43053edfa9..637feb5187 100644
    function wp_print_media_templates() { 
    14481448                        <div class="favicon">
    14491449                                <img id="preview-favicon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
    14501450                        </div>
    1451                         <span class="browser-title" aria-hidden="true"><# print( '<?php bloginfo( 'name' ); ?>' ) #></span>
     1451                        <span class="browser-title" aria-hidden="true"><# print( '<?php str_replace( '\\', '\\\\', get_bloginfo( 'name' ) ); ?>' ) #></span>
    14521452                </div>
    14531453
    14541454                <strong aria-hidden="true"><?php _e( 'As an app icon' ); ?></strong>