[wp-trac] [WordPress Trac] #34396: Gallery shortcode : make image captions relative to the current gallery

WordPress Trac noreply at wordpress.org
Thu Oct 22 12:57:04 UTC 2015


#34396: Gallery shortcode : make image captions relative to the current gallery
----------------------------+-----------------------------
 Reporter:  Fab1en          |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Gallery         |    Version:  3.5
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 In the media frame, the "Caption" field is used to set a caption for
 images. But this field has several other effects that are not always
 intended by the website author.

 * Changes to this field are saved on the database (in the excerpt field of
 the attachment post) as soon as the field is unfocused : no preview is
 possible, changes are put online directly. Changes are still applied even
 if "Update" button is not clicked.

 * For single image insertion, caption is saved in the post content, inside
 the [caption] shortcode. But for multiple images, caption is saved
 globally, not inside the [gallery] shortcode.

 * When modifying a gallery, changing the caption field right under the
 image also updates the caption field on the right panel, and saves it
 globally when the focus is moved. So even when the "Update gallery" button
 is not clicked, the changes are still saved in the database, but they are
 not reflected in the editor until the page is reloaded.

 * When an image is use in several galleries, updating the caption
 associated with this image in one gallery also updates the caption on the
 other gallery. This is very different from the behavior of other fields
 displayed on the right panel (columns, link to, size) that change only the
 current gallery.

 * Modifying the caption field is the attachment details edition view or in
 the media library grid view will change the caption used for this image in
 a gallery.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34396>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list