WordPress.org

Make WordPress Core

Ticket #46863: 46863.diff

File 46863.diff, 1.7 KB (added by donmhico, 3 months ago)

Fix formatting and apply the change on another area.

  • 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 bb4681ef62..b4edfb9da1 100644
    class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control 
    6464                                                        <div class="favicon">
    6565                                                                <img src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
    6666                                                        </div>
    67                                                         <span class="browser-title" aria-hidden="true"><?php bloginfo( 'name' ); ?></span>
     67                                                        <span class="browser-title" aria-hidden="true"><# print( '<?php bloginfo( 'name' ); ?>' ) #></span>
    6868                                                </div>
    6969                                                <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' ); ?>"/>
    7070                                        </div>
  • src/wp-includes/media-template.php

    diff --git src/wp-includes/media-template.php src/wp-includes/media-template.php
    index a3eba2e9c8..720c9619d7 100644
    function wp_print_media_templates() { 
    14001400                        <div class="favicon">
    14011401                                <img id="preview-favicon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
    14021402                        </div>
    1403                         <span class="browser-title" aria-hidden="true"><?php bloginfo( 'name' ); ?></span>
     1403                        <span class="browser-title" aria-hidden="true"><# print( '<?php bloginfo( 'name' ); ?>' ) #></span>
    14041404                </div>
    14051405
    14061406                <strong aria-hidden="true"><?php _e( 'As an app icon' ); ?></strong>