Make WordPress Core

Changeset 37456


Ignore:
Timestamp:
05/17/2016 08:38:20 PM (10 years ago)
Author:
swissspidy
Message:

Customize: Change attachment condition in the site icon control to prevent errors.

Props neverything.
Fixes #36749 for trunk.

File:
1 edited

Legend:

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

    r37426 r37456  
    6060                </label>
    6161
    62                 <# if ( data.attachment && data.attachment.id ) { #>
     62                <# if ( data.attachment && data.attachment.id && data.attachment.sizes ) { #>
    6363                        <div class="attachment-media-view">
    6464                                <div class="site-icon-preview">
Note: See TracChangeset for help on using the changeset viewer.