[wp-trac] [WordPress Trac] #21676: Pass a variable to get_template_part()

WordPress Trac noreply at wordpress.org
Wed Jul 1 18:27:29 UTC 2020


#21676: Pass a variable to get_template_part()
-------------------------------------+------------------------------
 Reporter:  sc0ttkclark              |       Owner:  SergeyBiryukov
     Type:  enhancement              |      Status:  reviewing
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Template                 |     Version:  3.4.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------------

Comment (by enrico.sorcinelli):

 As noted above, the patch adds a new functionality, that don't cause back
 compat issues.

 @apedog: templates using `set_query_var()` still remain working as which
 using globals: the primary goal isn't to rewrite existing templates or
 patterns but to offer a cleaner/faster templating approach.

 As I wrote, I know that the patch lost a little bit of its charm but IMHO
 I think it could be still useful and even if the view part is moving
 toward on the client side, there are a lot of situations where that it's
 not fully applicable or you don't want to do it.

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


More information about the wp-trac mailing list