[wp-trac] [WordPress Trac] #40969: RFE: get_template_part() to return something or warn when nothing found

WordPress Trac noreply at wordpress.org
Tue Jan 8 02:35:02 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 needs-refresh  |     Focuses:  template
-------------------------------------+-----------------------------
Changes (by pento):

 * keywords:  has-patch => has-patch needs-refresh
 * milestone:  5.1 => Future Release


Comment:

 Rather than only update `get_template_part()`, it'd be better to update
 all of the functions that call `locate_template()` at the same time.

 This will also need an addition to the docblock for each function, along
 the lines of `@since x.y.z Added the return value.`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40969#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list