diff --git a/assets/js/image-shortcake-admin.js b/assets/js/image-shortcake-admin.js index c5e6cf8..74e9872 100644 --- a/assets/js/image-shortcake-admin.js +++ b/assets/js/image-shortcake-admin.js @@ -54,7 +54,7 @@ var ImageShortcake = { return; } - var attachment = sui.views.editAttributeFieldAttachment.getFromCache( changed.value ); + var attachment = wp.media.attachment( changed.value ).attributes; if ( attachment ) {