WordPress.org

Make WordPress Core

Opened 20 months ago

Last modified 7 weeks ago

#42549 assigned enhancement

Widgets: Allow gallery widget to display images from currently-queried singular post if no images selected

Reported by: westonruter Owned by: audrasjb
Milestone: 5.3 Priority: normal
Severity: normal Version: 4.9
Component: Widgets Keywords: has-patch needs-testing
Focuses: Cc:

Description

In #42548 (pending) a [gallery] placed inside of a Text widget will result in the attachments for a given post to be used in the gallery when the widget appears on a singular template. The same behavior could be allowed for the Gallery widget as well. If you add a gallery widget to a sidebar but don't add any images to it, the widget could conditionally show if it is being rendered on a singular template for a post that has image attachments.

Attachments (1)

42549.0.diff (908 bytes) - added by westonruter 20 months ago.

Download all attachments as: .zip

Change History (9)

#1 @westonruter
20 months ago

  • Keywords has-patch added

There may need to be a way to clear a gallery of its selected images. Currently once you select an image, you cannot reset the gallery to be empty without deleting the gallery widget and adding one in its place.

#2 @westonruter
19 months ago

  • Keywords 2nd-opinion added
  • Milestone changed from 4.9.1 to 5.0

#3 @johnbillion
9 months ago

  • Milestone changed from 5.0 to 5.1

#4 @pento
6 months ago

  • Milestone changed from 5.1 to Future Release

#5 @audrasjb
4 months ago

  • Keywords 2nd-opinion removed
  • Milestone changed from Future Release to 5.2

Let's address this feature in 5.2

#6 @desrosj
3 months ago

  • Keywords needs-testing added

Going to punt this since 5.2 beta 1 is in less than 2 days. @audrasjb if you are able to get this ready by beta, feel free to move it back.

#7 @audrasjb
3 months ago

  • Milestone changed from 5.2 to 5.3

The timeframe is too short to have testing on this on, so I'm inclined to punt the ticket to 5.3.

#8 @audrasjb
7 weeks ago

  • Owner set to audrasjb
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.