[wp-trac] [WordPress Trac] #40969: RFE: get_template_part() to return something or warn when nothing found
WordPress Trac
noreply at wordpress.org
Thu Sep 26 20:26:11 UTC 2019
#40969: RFE: get_template_part() to return something or warn when nothing found
-------------------------------------------------+-------------------------
Reporter: sphakka | Owner:
| johnbillion
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 5.4
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback needs-unit- | Focuses: template
tests needs-dev-note early |
-------------------------------------------------+-------------------------
Comment (by johnbillion):
In [changeset:"46328" 46328]:
{{{
#!CommitTicketReference repository="" revision="46328"
Themes: Add a test to ensure `get_template_part()` does not return a
value.
This function must not be modified to return anything due to existing
themes which output the return value, for example via `echo
get_template_part( ... )`.
See #40969
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40969#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list