[wp-trac] [WordPress Trac] #32845: Introduce wp_include()
WordPress Trac
noreply at wordpress.org
Tue Jun 30 19:31:28 UTC 2015
#32845: Introduce wp_include()
-----------------------------+------------------------------
Reporter: johnjamesjacoby | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by johnjamesjacoby):
Replying to [comment:2 bordoni]:
> Just a small question, can we avoid the usage of `extract` here?
We can, and I advocate strongly (and regularly) against the use of
`extract()` everywhere, but... while I was writing the function, felt like
this is exactly the use-case where it does makes sense – where the
intention is to override all existing local variables.
I'm completely open to just re-assigning the variables based on the `$r`
array though. Doesn't make a difference to me.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32845#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list