[buddypress-trac] [BuddyPress Trac] #7149: Templates: locating empty array of template(s) errors undefined variable

buddypress-trac noreply at wordpress.org
Mon Dec 5 21:24:04 UTC 2016


#7149: Templates: locating empty array of template(s) errors undefined variable
------------------------------+------------------------
 Reporter:  Offereins         |       Owner:  Offereins
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  2.8
Component:  Core              |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+------------------------
Changes (by offereins):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"11267"]:
 {{{
 #!CommitTicketReference repository="" revision="11267"
 Stop locating an empty set of templates.

 Bail early in `bp_locate_template()` when there are no files to look for.
 This prevents PHP from showing errors when an empty array is provided. Use
 case for this is when by hooking into the `bp_get_template_part` filter
 you'd like to prevent the locating of a template.

 Fixes #7149.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7149#comment:10>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list