[wp-trac] [WordPress Trac] #40403: Media: Allow disabling of auto-save for attachment changes in Media Library

WordPress Trac noreply at wordpress.org
Mon Apr 10 21:10:06 UTC 2017


#40403: Media: Allow disabling of auto-save for attachment changes in Media Library
-------------------------+------------------------------
 Reporter:  westonruter  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by adamsilverstein):

 @westonruter I'm not certain what the best approach to making this sync
 event optional, I'm still looking into that. Would this be something
 turned off for a single media modal, the entire session, or a specific
 image?

 In the meantime, a functional approach is to replace the core
 `wp.media.model.Attachment.prototype.sync` object before opening the modal
 (then replace it when the modal is closed). For example, for the media
 widget you could do this [https://github.com/xwp/wp-core-media-
 widgets/pull/68 like this]

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40403#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list