[wp-trac] [WordPress Trac] #28693: Make gallery defaults configurable

WordPress Trac noreply at wordpress.org
Thu Jul 24 19:59:20 UTC 2014

#28693: Make gallery defaults configurable
 Reporter:  michal429                |       Owner:  wonderboymusic
     Type:  enhancement              |      Status:  reopened
 Priority:  normal                   |   Milestone:  4.0
Component:  Gallery                  |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  javascript

Comment (by wonderboymusic):

 In [changeset:"29284"]:
 #!CommitTicketReference repository="" revision="29284"
 When gallery settings are overridden, the JS-generated shortcodes need to
 check the new defaults before deleting attributes that it suspects are the
 same as the original default values.

 `wp.media.collection` has a new method to do this: `setDefaults()`.
 Also flips the use of `_.extend` to allow this method to be overriden on
 instance creation.

 See #28693.

Ticket URL: <https://core.trac.wordpress.org/ticket/28693#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list