Opened 5 months ago
Last modified 7 weeks ago
#23298 closed defect (bug)
Initial gallery 'Link to' setting not applied — at Version 4
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5.2 |
| Component: | Gallery | Version: | 3.5.1 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | pokes, krembo99, helgatheviking@…, glrss, pthomson87, desrosj@…, manyakabi, xavi.ivars@…, justin@…, pippin@…, DaganLev |
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:
- New Post.
- Add Media.
- Create Gallery.
- Create a New Gallery.
- Under Gallery Settings observe but don't touch the 'Link to' setting.
- Insert Gallery.
- Resulting gallery shortcode has no link=file or link=post regardless of the 'Link to' setting.
Change History (7)
CBarrett123
— 5 months ago
comment:1
CBarrett123
— 5 months 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.
Cheers!
comment:4
SergeyBiryukov
— 5 months ago
- Description modified (diff)
Link to Media File