[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:12:54 UTC 2019
#40969: RFE: get_template_part() to return something or warn when nothing found
-------------------------+-----------------------------
Reporter: sphakka | Owner: johnbillion
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: template
-------------------------+-----------------------------
Changes (by tferry):
* keywords: has-patch needs-refresh => has-patch
Comment:
Thanks for the suggestion and guidance @pento
New diff uploaded to add the return values to all `get_*()` functions
within `wp-includes/general-template.php` (including relevant @since and
@return docblock tags)
I've left the @since version tag as literally `x.y.z` as I don't know when
this'll be included in core, but happy to update as and when.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40969#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list