[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 19:29:42 UTC 2019


#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.3
Component:  Posts, Post Types                |     Version:  5.2
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 {{{
 There was 1 failure:

 1) Tests_Query_SetupPostdata::test_setup_postdata_loop
 Failed asserting that '<p>global post</p>' is not equal to '<p>global
 post</p>'.

 /var/www/tests/phpunit/tests/query/setupPostdata.php:416
 }}}
 Related: #24330

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


More information about the wp-trac mailing list