Changeset 10218
- Timestamp:
- 10/08/2015 07:03:44 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-screens.php
r10149 r10218 464 464 public function directory_template_hierarchy( $templates = array() ) { 465 465 466 // Set up the template hierarchy 467 $hierarchy = array(); 468 if ( '' !== bp_get_current_member_type() ) { 469 $hierarchy[] = 'members/index-directory-type-' . sanitize_file_name( bp_get_current_member_type() ) . '.php'; 470 } 471 $hierarchy[] = 'members/index-directory.php'; 472 466 473 /** 467 474 * Filters the template hierarchy for theme compat and members directory page. … … 471 478 * @param array $value Array of template paths to add to hierarchy. 472 479 */ 473 $new_templates = apply_filters( 'bp_template_hierarchy_members_directory', array( 474 'members/index-directory.php' 475 ) ); 480 $new_templates = apply_filters( 'bp_template_hierarchy_members_directory', $hierarchy ); 476 481 477 482 // Merge new templates with existing stack
Note: See TracChangeset
for help on using the changeset viewer.