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

WordPress Trac noreply at wordpress.org
Sun Jun 26 09:26:58 UTC 2016


#37173: get_the_content() has undocumented globals
-------------------------------+-----------------------------
 Reporter:  slimndap           |      Owner:
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  trunk
 Severity:  normal             |   Keywords:
  Focuses:  docs               |
-------------------------------+-----------------------------
 {{{ get_the_content() }}} is using several globals that are mentioned, but
 not explained in the docblock:


 {{{
  * @global int   $page
  * @global int   $more
  * @global bool  $preview
  * @global array $pages
  * @global int   $multipage
 }}}


 It took me a while before I was able to understand what they are and
 where/when they are set.

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


More information about the wp-trac mailing list