[wp-trac] [WordPress Trac] #40969: RFE: get_template_part() to return something or warn when nothing found
WordPress Trac
noreply at wordpress.org
Fri Jun 9 10:13:10 UTC 2017
#40969: RFE: get_template_part() to return something or warn when nothing found
-------------------------+-----------------------------
Reporter: sphakka | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
AFAIK `get_template_part()` doesn't return anything. This is a nightmare
when args are misspelled -- think of a leading/trailing space. Given that
internally `locate_template()` **does** return what it finds, could we
please either expose this return value or warn when nothing is found?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40969>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list