[wp-trac] [WordPress Trac] #36934: Use of get_the_excerpt($post) is broken if post has no excerpt and you are inside a loop

WordPress Trac noreply at wordpress.org
Thu Feb 23 15:22:34 UTC 2017


#36934: Use of get_the_excerpt($post) is broken if post has no excerpt and you are
inside a loop
-------------------------------------------------+-------------------------
 Reporter:  magicroundabout                      |       Owner:  swissspidy
     Type:  defect (bug)                         |      Status:  reviewing
 Priority:  normal                               |   Milestone:  Future
Component:  Formatting                           |  Release
 Severity:  normal                               |     Version:  4.5
 Keywords:  has-patch needs-testing has-unit-    |  Resolution:
  tests dev-feedback                             |     Focuses:  template
-------------------------------------------------+-------------------------

Comment (by achbed):

 Is it a good thing or a bad thing that the only issue I have with this
 latest patch is the value for `@since` in the docblock in `src/wp-
 includes/formatting.php`?

 Thanks for all the long hard looks @swissspidy ! This one's been a doozy
 because of all the core WP_Post and WP_Query changes required.  I think it
 sets us all on a better footing though.

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


More information about the wp-trac mailing list