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

WordPress Trac noreply at wordpress.org
Sun Aug 19 09:59:31 UTC 2018


#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.0
Component:  Themes                   |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:  template
-------------------------------------+--------------------------
Changes (by johnbillion):

 * keywords:  2nd-opinion has-patch => has-patch needs-refresh
 * owner:  (none) => johnbillion
 * status:  new => reviewing
 * milestone:  Awaiting Review => 5.0


Comment:

 @tferry I agree with this function passing back the result of
 `locate_template()`. The docblock needs updating to reflect the new
 `@return` value; it should probably be identical to that of
 `locate_template()`.

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


More information about the wp-trac mailing list