[wp-trac] [WordPress Trac] #47824: get_the_content() still causes a PHP warning outside of the loop

WordPress Trac noreply at wordpress.org
Sat Sep 7 14:32:33 UTC 2019


#47824: get_the_content() still causes a PHP warning outside of the loop
---------------------------------------------+-----------------------------
 Reporter:  SergeyBiryukov                   |       Owner:  SergeyBiryukov
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  5.3
Component:  Posts, Post Types                |     Version:  5.2
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"46079" 46079]:
 {{{
 #!CommitTicketReference repository="" revision="46079"
 Posts, Post Types: Avoid a PHP warning when `the_content()` is called
 outside of the loop.

 Fixes #47824.
 }}}

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


More information about the wp-trac mailing list