Changeset 6780 for trunk/bp-core/bp-core-template-loader.php
- Timestamp:
- 02/10/2013 11:57:50 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-template-loader.php
r6667 r6780 279 279 * @since BuddyPress (1.7) 280 280 * 281 * @param array $ templates281 * @param array $stacks 282 282 * @return array() 283 283 */ 284 function bp_add_template_ locations( $templates = array() ) {284 function bp_add_template_stack_locations( $stacks = array() ) { 285 285 $retval = array(); 286 286 287 287 // Get alternate locations 288 $locations = bp_get_template_locations( $templates);289 290 // Loop through locations and templates and combine291 foreach ( (array) $ locations as $location)292 foreach ( (array) $ templates as $template)293 $retval[] = ltrim( trailingslashit( $location ) . $template, '/');294 295 return apply_filters( 'bp_add_template_ locations', array_unique( $retval ), $templates );288 $locations = bp_get_template_locations(); 289 290 // Loop through locations and stacks and combine 291 foreach ( (array) $stacks as $stack ) 292 foreach ( (array) $locations as $custom_location ) 293 $retval[] = untrailingslashit( trailingslashit( $stack ) . $custom_location ); 294 295 return apply_filters( 'bp_add_template_stack_locations', array_unique( $locations ), $stacks ); 296 296 } 297 297
Note: See TracChangeset
for help on using the changeset viewer.