[wp-trac] [WordPress Trac] #37173: get_the_content() has undocumented globals

WordPress Trac noreply at wordpress.org
Mon Oct 3 07:49:07 UTC 2016


#37173: get_the_content() has undocumented globals
---------------------------------------------+-------------------------
 Reporter:  slimndap                         |       Owner:  goranseric
     Type:  defect (bug)                     |      Status:  assigned
 Priority:  normal                           |   Milestone:  4.7
Component:  Posts, Post Types                |     Version:  0.71
 Severity:  normal                           |  Resolution:
 Keywords:  good-first-bug has-patch commit  |     Focuses:  docs
---------------------------------------------+-------------------------

Comment (by swissspidy):

 I'm not sure about `$preview` right now, but most of them are set in
 `WP_Query` by `setup_postdata()`. We should get rid of most them though,
 see #36934.

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


More information about the wp-trac mailing list