[wp-trac] [WordPress Trac] #22413: get_the_excerpt() missing a check on $post->post_excerpt

WordPress Trac noreply at wordpress.org
Sun Nov 11 18:29:43 UTC 2012


#22413: get_the_excerpt() missing a check on $post->post_excerpt
------------------------------+------------------------------
 Reporter:  johnjamesjacoby   |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  low               |   Milestone:  Awaiting Review
Component:  Warnings/Notices  |     Version:
 Severity:  minor             |  Resolution:
 Keywords:  has-patch         |
------------------------------+------------------------------

Comment (by nacin):

 That's an interesting inconsistency. Under what situation would we have a
 post object without post_excerpt? Is that still a valid post object? Are
 these notices we should actually be suppressing, or should developers see
 them?

 With 3.5, any WP_Post object will automatically have post_excerpt = `''`.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22413#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list