[wp-trac] [WordPress Trac] #39302: Twenty Seventeen: Featured image not displayed on single template

WordPress Trac noreply at wordpress.org
Tue Dec 20 22:59:30 UTC 2016


#39302: Twenty Seventeen: Featured image not displayed on single template
---------------------------+----------------------------
 Reporter:  westonruter    |       Owner:  davidakennedy
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  4.7.1
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:
---------------------------+----------------------------
Changes (by davidakennedy):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39624"]:
 {{{
 #!CommitTicketReference repository="" revision="39624"
 Twenty Seventeen: Hardens the logic for calling featured image in
 `header.php`

 This change uses `get_queried_object_id()` here since the `$post` global
 may not be set before a call to `the_post()`.

 Props westonruter.

 Fixes #39302.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39302#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list