[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
Sun Sep 11 12:01:52 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:  swissspidy
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  4.7
Component:  Formatting                           |     Version:  4.5
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing needs-unit-  |     Focuses:  template
  tests 4.7-early                                |
-------------------------------------------------+-------------------------

Comment (by swissspidy):

 @achbed The globals aren't going away completely with that patch,
 `get_the_content()` just doesn't rely on them anymore. If anyone's doing
 `global $multipage` or `global $pages`, it will continue to work.

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


More information about the wp-trac mailing list