Changeset 4762 for trunk/includes/core/template-functions.php
- Timestamp:
- 02/10/2013 11:53:07 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/core/template-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core/template-functions.php
r4670 r4762 248 248 * @return array() 249 249 */ 250 function bbp_add_template_ locations( $templates = array() ) {250 function bbp_add_template_stack_locations( $stacks = array() ) { 251 251 $retval = array(); 252 252 253 253 // Get alternate locations 254 $locations = bbp_get_template_locations( $templates);255 256 // Loop through locations and templates and combine257 foreach ( (array) $ locations as $location)258 foreach ( (array) $ templates as $template)259 $retval[] = ltrim( trailingslashit( $location ) . $template, '/');260 261 return apply_filters( 'bbp_add_template_ locations', array_unique( $retval ), $templates );254 $locations = bbp_get_template_locations(); 255 256 // Loop through locations and stacks and combine 257 foreach ( (array) $stacks as $stack ) 258 foreach ( (array) $locations as $custom_location ) 259 $retval[] = untrailingslashit( trailingslashit( $stack ) . $custom_location ); 260 261 return apply_filters( 'bbp_add_template_stack_locations', array_unique( $locations ), $stacks ); 262 262 } 263 263
Note: See TracChangeset
for help on using the changeset viewer.