Skip to content

Commit

Permalink
fix img shortcode editing
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Montgomery committed Aug 2, 2017
1 parent 67140e9 commit fb9e914
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions assets/js/image-shortcake-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ var ImageShortcake = {
return;
}

var attachment = sui.views.editAttributeFieldAttachment.getFromCache( changed.value );
var attachment = wp.media.attachment( changed.value ).attributes;

if ( attachment ) {

Expand Down Expand Up @@ -144,4 +144,3 @@ if ( typeof wp.shortcake !== 'undefined' && typeof wp.shortcake.hooks !== 'undef
wp.shortcake.hooks.addAction( 'img.linkto', ImageShortcake.listeners.linkto );

}

0 comments on commit fb9e914

Please sign in to comment.