Customize: Add a RTL version of "browser.png" for the site icon preview.
Props sidati. Fixes #37063. git-svn-id: https://develop.svn.wordpress.org/trunk@37963 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c259f4c35d
commit
9c4f1a3431
BIN
src/wp-admin/images/browser-rtl.png
Normal file
BIN
src/wp-admin/images/browser-rtl.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
@ -64,7 +64,7 @@ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control
|
||||
<# if ( data.attachment.sizes ) { #>
|
||||
<div class="site-icon-preview">
|
||||
<div class="favicon-preview">
|
||||
<img src="<?php echo esc_url( admin_url( 'images/browser.png' ) ); ?>" class="browser-preview" width="182" alt="" />
|
||||
<img src="<?php echo esc_url( admin_url( 'images/' . ( is_rtl() ? 'browser-rtl.png' : 'browser.png' ) ) ); ?>" class="browser-preview" width="182" alt="" />
|
||||
|
||||
<div class="favicon">
|
||||
<img id="preview-favicon" src="{{ data.attachment.sizes.full.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
|
||||
|
@ -1240,7 +1240,7 @@ function wp_print_media_templates() {
|
||||
<h2><?php _e( 'Preview' ); ?></h2>
|
||||
<strong aria-hidden="true"><?php _e( 'As a browser icon' ); ?></strong>
|
||||
<div class="favicon-preview">
|
||||
<img src="images/browser.png" class="browser-preview" width="182" height="" alt="" />
|
||||
<img src="<?php echo esc_url( admin_url( 'images/' . ( is_rtl() ? 'browser-rtl.png' : 'browser.png' ) ) ); ?>" class="browser-preview" width="182" height="" alt="" />
|
||||
|
||||
<div class="favicon">
|
||||
<img id="preview-favicon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
|
||||
|
Loading…
Reference in New Issue
Block a user