[wp-trac] [WordPress Trac] #21676: Pass a variable to get_template_part()
WordPress Trac
noreply at wordpress.org
Fri Dec 15 14:48:28 UTC 2017
#21676: Pass a variable to get_template_part()
-------------------------------------------+------------------------------
Reporter: sc0ttkclark | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Template | Version: 3.4.1
Severity: normal | Resolution:
Keywords: has-patch close needs-testing | Focuses:
-------------------------------------------+------------------------------
Comment (by enrico.sorcinelli):
I just updated the patch to the current trunk.
I used `$params` as scoped variable temporary name, but we should chose a
more specific name (for example `$wp_tmpl_args`) in order to avoid
possible conflicts.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21676#comment:64>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list