[wp-trac] [WordPress Trac] #40969: RFE: get_template_part() to return something or warn when nothing found
WordPress Trac
noreply at wordpress.org
Mon Jan 21 21:59:49 UTC 2019
#40969: RFE: get_template_part() to return something or warn when nothing found
-------------------------+-----------------------
Reporter: sphakka | Owner: pento
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.1
Component: Themes | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: template
-------------------------+-----------------------
Changes (by pento):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"44678" 44678]:
{{{
#!CommitTicketReference repository="" revision="44678"
Themes: Return the value of `locate_template()` in functions that call it.
The `get_header()`, `get_footer()`, `get_sidebar()`, and
`get_template_part()` functions all call `locate_template()` as their
final action, which returns the name of the template being loaded.
Returning this value helps handle problems with templates being loaded.
Props tferry.
Fixes #40969.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40969#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list