Ticket #6588: 6588.03.patch
File 6588.03.patch, 1.1 KB (added by , 9 years ago) |
---|
-
src/bp-members/bp-members-screens.php
463 463 */ 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. 468 475 * … … 470 477 * 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 478 483 // @see bp_get_theme_compat_templates()