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

WordPress Trac noreply at wordpress.org
Wed Mar 11 18:50:16 UTC 2020


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

 * Attachment "47824.3.diff" added.

 In this version, get_the_content() avoids using globals altogether.

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


More information about the wp-trac mailing list