WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#22617 closed defect (bug) (fixed)

In gallery shortcode, map "ids" to orderby and include prior to post_gallery filter

Reported by: nacin Owned by: nacin
Milestone: 3.5 Priority: high
Severity: major Version: 3.5
Component: Gallery Keywords: commit
Focuses: Cc:

Description

A plugin using the post_gallery filter won't know what "ids" is. They shouldn't need to. As it is simply a shortcut for two existing properties, we should automatically take it and map it to orderby and include *before* the filter, not after.

Attachments (1)

22617.diff (1.1 KB) - added by nacin 2 years ago.

Download all attachments as: .zip

Change History (3)

@nacin2 years ago

comment:1 @ryan2 years ago

  • Keywords commit added

comment:2 @nacin2 years ago

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

In 22891:

In the gallery shortcode, handle mapping of "ids" to include and orderby before the post_gallery filter. see #21816. fixes #22617.

Note: See TracTickets for help on using tickets.