Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#23823 closed enhancement (fixed)

Twenty Thirteen: Use gallery shortcode filter for featured galleries

Reported by: obenland's profile obenland Owned by: lancewillett's profile lancewillett
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.6
Component: Bundled Theme Keywords: has-patch
Focuses: Cc:

Description

With r23626 we can now filter gallery shortcode attributes. Let's use this filter, to cleanly alter the passed image size for the featured gallery. The images should be at least 300x300px in size.

Attachments (2)

23823.diff (1.2 KB) - added by obenland 12 years ago.
23823.1.diff (846 bytes) - added by lancewillett 12 years ago.

Download all attachments as: .zip

Change History (8)

@obenland
12 years ago

#2 @philiparthurmoore
12 years ago

  • Cc philip@… added

#3 @lancewillett
12 years ago

What do you think about using an anonymous function to filter the attribute instead? See .1 patch.

#4 follow-up: @obenland
12 years ago

It would be great if the the minimum PHP requirement for WordPress would not be 5.2 :(

#5 in reply to: ↑ 4 @DrewAPicture
12 years ago

Replying to obenland:

It would be great if the the minimum PHP requirement for WordPress would not be 5.2 :(

Also, sometimes anonymous functions don't play very nicely on IIS.

#6 @lancewillett
12 years ago

  • Owner set to lancewillett
  • Resolution set to fixed
  • Status changed from new to closed

In 23782:

Twenty Thirteen: use gallery shortcode filter for featured galleries, props obenland. Closes #23823.

Note: See TracTickets for help on using tickets.