[wp-trac] [WordPress Trac] #21676: Pass a variable to get_template_part()
WordPress Trac
noreply at wordpress.org
Wed Jul 1 16:43:03 UTC 2020
#21676: Pass a variable to get_template_part()
-------------------------------------+------------------------------
Reporter: sc0ttkclark | Owner: SergeyBiryukov
Type: enhancement | Status: reviewing
Priority: normal | Milestone: Awaiting Review
Component: Template | Version: 3.4.1
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+------------------------------
Comment (by joyously):
Replying to [comment:91 apedog]:
> In other words, themes that currently use the
{{{set_quer_var();get_template_part();}}} pattern can be switched to
{{{get_template_part($args)}}} while the template-parts themselves can
remain unchanged.
Actually, they can't make that simple change without checking for WP
version.
What is the actual goal? With the coming template parts in Full Site
Editing, why do you want to complicate things like this?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21676#comment:92>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list