[wp-trac] [WordPress Trac] #42688: Option to make get_template_part return instead of require

WordPress Trac noreply at wordpress.org
Wed Nov 29 23:07:45 UTC 2017


#42688: Option to make get_template_part return instead of require
-----------------------------+------------------------------
 Reporter:  mclaurent        |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Themes           |     Version:  4.9
 Severity:  normal           |  Resolution:
 Keywords:  2nd-opinion      |     Focuses:  template
-----------------------------+------------------------------

Comment (by dd32):

 I don't think either are needed myself, but I'll leave it open to other
 committers to see if anyone feels strongly.

 A wrapper with `shortcode` in the method name doesn't seem useful, and
 like I said, given it's only two lines, I don't see the real need for core
 to support adding an `$echo` parameter to `get_template_part()` as I
 really dislike all the various `$echo = ?` functions.

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


More information about the wp-trac mailing list