id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 22919,"Gallery shortcode columns attribute present, even when default",kovshenin,koopersmith,"I love new media! Anyway, the default columns value is 3, so here's a scenario: 1. Add a new post 1. Hit Add Media, Create Gallery, select a few images and hit insert. Switch to Text mode. You'll see the gallery shortcode has been inserted with only the `ids` attribute, which is expected. 1. Make sure you're in Visual mode. Select the Gallery and hit the little Edit Gallery button, set Columns to 5, hit Update Gallery and switch to Text mode. You'll see that the gallery shortcode now also has `columns=""5""` which is expected. 1. Edit the gallery again and set Columns back to 3. Hit Update and switch to Text. You'll see the shortcode has `columns=""3""` but expected to see no `columns` attribute since 3 is the default. The same behavior happens on the `link` attribute. The ""correct"" behavior happens on the `orderby=""rand""` attribute, which is removed from the shortcode when set to the default (off) state.",defect (bug),closed,normal,3.5.1,Media,3.5,normal,fixed,has-patch commit,,