[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
Wed Jul 6 16:52:03 UTC 2016


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

Comment (by achbed):

 Rather than patching core on my production boxen, I'm doing a "poor man's"
 filter instead on my live sites to paper over the issue.  See comment 5
 above.

 I also tend to use a "fix once correctly" approach, rather than use a
 patch that may cause unknown collateral damage (more than already exists).
 Let's try to get this resolved permanently once.

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


More information about the wp-trac mailing list