WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/10/2015 09:32:23 PM (5 years ago)
Author:
obenland
Message:

Site Icon: Add Customizer UI.

Second part of the Site Icon feature after [32994] introduced it for Settings.

Props celloexpressions.
See #16434.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-icon.php

    r33084 r33154  
    275275                    <div class="site-icon-crop-preview-shell hide-if-no-js">
    276276                        <h3><?php _e( 'Preview' ); ?></h3>
    277                         <strong><?php _e( 'As your favicon' ); ?></strong>
     277                        <strong><?php _e( 'As a browser icon' ); ?></strong>
    278278                        <div class="site-icon-crop-favicon-preview-shell">
    279279                            <img src="images/browser.png" class="site-icon-browser-preview" width="182" height="" alt="<?php esc_attr_e( 'Browser Chrome' ); ?>"/>
     
    285285                        </div>
    286286
    287                         <strong><?php _e( 'As a mobile icon' ); ?></strong>
     287                        <strong><?php _e( 'As an app icon' ); ?></strong>
    288288                        <div class="site-icon-crop-preview-homeicon">
    289289                            <img src="<?php echo esc_url( $url ); ?>" id="preview-homeicon" alt="<?php esc_attr_e( 'Preview Home Icon' ); ?>"/>
     
    506506        // ensure that we only resize the image into
    507507        foreach ( $sizes as $name => $size_array ) {
    508             if ( $size_array['crop'] ) {
     508            if ( isset( $size_array['crop'] ) ) {
    509509                $only_crop_sizes[ $name ] = $size_array;
    510510            }
Note: See TracChangeset for help on using the changeset viewer.