[wp-trac] [WordPress Trac] #51042: Post missing excerpt

WordPress Trac noreply at wordpress.org
Tue Aug 18 08:30:02 UTC 2020


#51042: Post missing excerpt
--------------------------+------------------------------
 Reporter:  riaanlom      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Post Formats  |     Version:  5.5
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------

Comment (by riaanlom):

 @laxman-prajapati

 I'm not calling the function directly.

 This used to return the generate excerpt from the post content but with WP
 5.5 it returns NULL

 {{{
 $post = get_post(1);
 $excerpt = ! empty( $post->post_excerpt ) ? $post->post_excerpt : null;
 $excerpt = apply_filters( 'get_the_excerpt', $excerpt, $post );
 }}}

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


More information about the wp-trac mailing list