Make WordPress Core

Changes between Initial Version and Version 4 of Ticket #33417


Ignore:
Timestamp:
08/21/2015 07:12:03 PM (9 years ago)
Author:
westonruter
Comment:

Thank you. I was able to reproduce the issue once I tried a _small_ image.

The error is happening in the SiteIconControl.setImageFromAttachment() method on this line:

$( 'link[sizes="32x32"]' ).attr( 'href', icon.url );

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33417

    • Property Keywords needs-patch added
    • Property Milestone changed from Awaiting Review to 4.3.1
    • Property Focuses javascript added
    • Property Summary changed from Js error when skip sropping to JS error when uploading small image as Site Icon and electing to Skip Cropping
  • Ticket #33417 – Description

    initial v4  
    1 I select file in Customize > Site identity > Site icon. After select image, i choose skip cropping then popup has changed to blank. I see an eror in browse console:
    2 Uncaught TypeError: Cannot read property 'url' of undefined in load-scripts.php line 9
     1I select a _small_ image in Customize > Site identity > Site icon. After selecting the image, I choose “Skip Cropping” and then the modal changes to blank. I see an error in browse console:
     2
     3> Uncaught TypeError: Cannot read property 'url' of undefined