[wp-trac] [WordPress Trac] #47114: global $pages not available on the_post action
WordPress Trac
noreply at wordpress.org
Sat May 4 15:38:04 UTC 2019
#47114: global $pages not available on the_post action
-------------------------------+-----------------------
Reporter: david.binda | Owner: azaozz
Type: defect (bug) | Status: assigned
Priority: highest omg bbq | Milestone: 5.2
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
-------------------------------+-----------------------
Comment (by birgire):
When [attachment:"47114.diff"], just a small reminder to add the:
{{{
/**
* @ticket 47114
*/
}}}
above the {{{test_the_post_action()}}} test method in
[attachment:"47114.diff"].
The test in [attachment:"47114.diff"] uses an anonymous function. I know
the minimum PHP has been bumped to 5.6 so it should be supported, but I
was wondering if there have been any discussion or guidelines regarding
the general use of anonymous functions in core or tests (as there are both
pros and cons using it) ?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47114#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list