[wp-trac] [WordPress Trac] #39949: get_the_excerpt() in a widget doesn't work as intended

WordPress Trac noreply at wordpress.org
Thu Feb 23 10:50:13 UTC 2017


#39949: get_the_excerpt() in a widget doesn't work as intended
-------------------------------+------------------------------
 Reporter:  madhatter2099      |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  4.7.2
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------

Comment (by swissspidy):

 Hey there,

 Welcome to Trac.

 Sounds like you're affected by #36934. Basically, because of the way
 WordPress store some stuff in globals, the excerpt is built based on the
 wrong post object.

 What happens when you explicitly add an excerpt for that post and display
 it?

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


More information about the wp-trac mailing list