[Bb-trac] [bbPress] #988: New filters to add variables into the global context for template files

bbPress bb-trac at lists.bbpress.org
Wed Nov 5 14:38:25 GMT 2008


#988: New filters to add variables into the global context for template files
----------------------------+-----------------------------------------------
 Reporter:  simonwheatley   |       Owner:                         
     Type:  enhancement     |      Status:  new                    
 Priority:  normal          |   Milestone:                         
Component:  Administration  |     Version:                         
 Severity:  normal          |    Keywords:  has-patch needs-testing
----------------------------+-----------------------------------------------
 I found myself wanting to add some variables from the global context into
 a template, without having to litter "global" keywords all over my
 template files. The attached patch adds a filter into the function
 bb_load_template, which allows the plugin/theme author to bring in
 variables from the global context. The code's not that complicated and I'm
 making a right meal of describing it... :)

-- 
Ticket URL: <http://trac.bbpress.org/ticket/988>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list