[wp-trac] [WordPress Trac] #41979: Caption changes don't cause Gallery widget to refresh in Customizer preview
WordPress Trac
noreply at wordpress.org
Mon Sep 25 15:36:52 UTC 2017
#41979: Caption changes don't cause Gallery widget to refresh in Customizer preview
--------------------------+-------------------------
Reporter: westonruter | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9
Component: Widgets | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------+-------------------------
The Gallery widget (#41914) allows for captions to be supplied for images
via the media modal. Whereas the list of attachment `ids` are part of the
widget instance data, the captions are ''not''. Therefore when just
changing a caption then no change will be reflected in the Customizer
preview since no change was made to the Customizer setting.
This problem was first encountered in the Image widget (#39993) and the
solution there was to put the caption into the instance data itself, and
disable the auto-saving of the attachment changes back (see also #40403).
For the code that was removed from the Image widget which could be useful
for the Gallery widget here, see https://github.com/xwp/wp-core-media-
widgets/commit/ddd59e2
Reported by @rabmalin in
https://core.trac.wordpress.org/ticket/41914#comment:10
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41979>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list