Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#23298 closed defect (bug)

Initial gallery 'Link to' setting not applied — at Version 4

Reported by: pokes Owned by:
Milestone: 3.5.2 Priority: normal
Severity: normal Version: 3.5.1
Component: Gallery Keywords: has-patch commit
Focuses: Cc:

Description (last modified by SergeyBiryukov)

When inserting a new gallery in a post, the setting shown in the 'Link to' dropdown of the gallery settings is not applied. Changing the setting (even straight back to what it showed) causes it to be applied.

To demonstrate/reproduce:

  1. New Post.
  2. Add Media.
  3. Create Gallery.
  4. Create a New Gallery.
  5. Under Gallery Settings observe but don't touch the 'Link to' setting.
  6. Insert Gallery.
  7. Resulting gallery shortcode has no link=file or link=post regardless of the 'Link to' setting.

Change History (7)

3 years ago

Link to Media File

3 years ago

Link to Attachment

#1 @CBarrett123
3 years ago

I can confirm the bug reported by Pokes using Twelve Eleven with no plugins active.
If you generate a new Gallery using either freshly uploaded images, or existing images previously uploaded, and set the link to "Media File", it's dropping the link="file" rom teh shortcode. You end up with [gallery ids="1,2,3,4"].

During the Gallery generation step, or when editing the gallery after saving, if you toggle from link to "Media File" to link to "Attachment Page" and then back to link to "Media File", now the correct short code of [gallery link="file" ids="1,2,3,4"] is generated.


#2 @nacin
3 years ago

  • Milestone changed from Awaiting Review to 3.5.2

Is this in 3.5.1?

#3 @pokes
3 years ago

  • Cc pokes added

Yes, in 3.5.1

#4 @SergeyBiryukov
3 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.