[buddypress-trac] [BuddyPress Trac] #8350: Support extra $args in `load_template()`

buddypress-trac noreply at wordpress.org
Wed Aug 19 14:38:38 UTC 2020


#8350: Support extra $args in `load_template()`
-------------------------+------------------------------------
 Reporter:  dcavins      |      Owner:  (none)
     Type:  enhancement  |     Status:  assigned
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Core         |    Version:  6.2.0
 Severity:  normal       |   Keywords:  has-patch dev-feedback
-------------------------+------------------------------------
 Thanks to some changes in WP 5.5
 (https://make.wordpress.org/core/2020/07/17/passing-arguments-to-template-
 files-in-wordpress-5-5/), it's now possible to pass extra arguments to a
 template file. We use `load_template()`
 (https://developer.wordpress.org/reference/functions/load_template/) in
 `bp_locate_template()`, and the attached patch supports the passing of an
 extra `$args` parameter through our template functions to
 `load_template()`.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8350>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list