Make WordPress Core

Changeset 24017


Ignore:
Timestamp:
04/17/2013 05:57:51 PM (11 years ago)
Author:
markjaquith
Message:

Use attachment.url only if it is available, else fall back to props.url.

see #24046. see [24009].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-editor.js

    r24009 r24017  
    192192            classes = props.classes || [];
    193193
    194             img.src = props.url;
     194            img.src = typeof attachment !== 'undefined' ? attachment.url : props.url;
    195195            _.extend( img, _.pick( props, 'width', 'height', 'alt' ) );
    196196
Note: See TracChangeset for help on using the changeset viewer.