Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#23823 closed enhancement (fixed)

Twenty Thirteen: Use gallery shortcode filter for featured galleries

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

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 14 years ago.
23823.1.diff​ (846 bytes ) - added by lancewillett 14 years ago.

Download all attachments as: .zip

Change History (8)

#2 @philiparthurmoore
14 years ago

  • Cc philip@… added

#3 @lancewillett
14 years ago

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

#4 follow-up: @obenland
14 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
14 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
14 years ago

  • Owner set to lancewillett
  • Resolution → fixed
  • Status new → closed

In 23782:

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

Note: See TracTickets for help on using tickets.