Opened 12 years ago
Closed 12 years ago
#27183 closed defect (bug) (fixed)
On a gallery update default shortcode attributes are added
| Reported by: | ocean90 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.9 |
| Component: | Gallery | Version: | 3.9 |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: |
Description
Steps to reproduce:
- Create a post with a gallery.
- Post content should look like
[gallery ids="4197,5203"] - Open the Edit Gallery modal by clicking on the gallery placeholder
- Press the "Update gallery" button
- Post content is now
[gallery order="ASC" itemtag="dl" icontag="dt" captiontag="dd" columns="3" link="post" size="thumbnail" ids="4197,5203" orderby="menu_order ID"]
Attachments (1)
Change History (7)
#3
@
12 years ago
oh my bad .. i checked that on stable version..
On trunk: It's showing attributes as you stated
#4
@
12 years ago
- Keywords has-patch added; needs-patch removed
So the bug is that at the point of attempting to remove any default gallery shortcode attributes, 'this.defaults' is undefined, so the defaults remain. I couldn't figure out if there's a mechanism whereby those defaults should have been populated by that line of code so my patch just explicitly passes them in. Please change accordingly!
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I can't reproduce this..