[wp-trac] [WordPress Trac] #40969: RFE: get_template_part() to return something or warn when nothing found
WordPress Trac
noreply at wordpress.org
Thu Jan 30 09:51:09 UTC 2020
#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 tferry):
Hey @SergeyBiryukov, I'm in favor of your approach - looks like a good way
to address the raised concerns while still allowing for error checking...
and without the fuss of adding a whole new function.
I would assume that changing the return value of this function also means
the related test [46328] would need to be updated to test for a false
return value as well as null/void?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40969#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list