Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#25740 closed defect (bug) (fixed)

Twenty Fourteen: Fix gallery posts in the ephemera widget

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

Description

Currently the gallery posts in the ephemere widget are not working correctly. The issues are:

  • Total number of images in a gallery isn't correct.
  • Wrong cover image appears if none of gallery images is attached to the post.
  • Cover image and total number appear even a post is password protected.

Attachments (1)

25740.diff​ (5.3 KB ) - added by iamtakashi 13 years ago.

Download all attachments as: .zip

Change History (4)

@iamtakashi
13 years ago

#1 @iamtakashi
13 years ago

  • Keywords has-patch added

Attached a patch that fixes the issue pointed above.

With this patch, I removed the fallback for featured image in gallery posts because only the gallery format does this and it may confuse users. Also I removed post ID from article to prevent duplicated IDs on a page because we are not removing the posts in the widget from the main query.

#2 @lancewillett
13 years ago

  • Milestone Awaiting Review → 3.8
  • Summary Twenty Fourteen: Fix gallery posts in the ephemere widget → Twenty Fourteen: Fix gallery posts in the ephemera widget

#3 @lancewillett
13 years ago

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

In 25970:

Twenty Fourteen: Fix gallery posts in the ephemera widget. Props iamtakashi, fixes #25740.

Note: See TracTickets for help on using tickets.