Make WordPress Core

Opened 3 years ago

Last modified 2 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)

@CBarrett1233 years ago

Link to Media File

@CBarrett1233 years ago

Link to Attachment

comment:1 @CBarrett1233 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.


comment:2 @nacin3 years ago

  • Milestone changed from Awaiting Review to 3.5.2

Is this in 3.5.1?

comment:3 @pokes3 years ago

  • Cc pokes added

Yes, in 3.5.1

comment:4 @SergeyBiryukov3 years ago

  • Description modified (diff)

@SergeyBiryukov3 years ago

Note: See TracTickets for help on using tickets.