Make WordPress Core

Changeset 37964


Ignore:
Timestamp:
07/05/2016 12:41:38 PM (8 years ago)
Author:
ocean90
Message:

Customize: Fix site icon preview in RTL.

  • Set the direction of previews to LTR.
  • Remove the ID attribute from the favicon preview in the customizer panel. The preview in the media modal uses the same ID which prevented updating the correct favicon preview.

Fixes #37286.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/site-icon.css

    r36907 r37964  
    3939}
    4040
     41/* rtl:ignore */
     42.site-icon-preview .favicon,
     43.site-icon-preview .app-icon-preview {
     44    direction: ltr;
     45}
     46
    4147.customize-control-site_icon .favicon-preview {
    4248    float: left;
  • trunk/src/wp-includes/customize/class-wp-customize-site-icon-control.php

    r37963 r37964  
    6868
    6969                            <div class="favicon">
    70                                 <img id="preview-favicon" src="{{ data.attachment.sizes.full.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
     70                                <img src="{{ data.attachment.sizes.full.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
    7171                            </div>
    7272                            <span class="browser-title" aria-hidden="true"><?php bloginfo( 'name' ); ?></span>
Note: See TracChangeset for help on using the changeset viewer.