Skip to:
Content

BuddyPress.org

Ticket #6588: 6588-02.patch

File 6588-02.patch, 560 bytes (added by hnla, 9 years ago)

Add string 'directory' to file name

  • src/bp-members/bp-members-screens.php

     
    472472                 * @param array $value Array of template paths to add to hierarchy.
    473473                 */
    474474                $new_templates = apply_filters( 'bp_template_hierarchy_members_directory', array(
     475                        'members/index-directory-type-' . sanitize_file_name( bp_get_current_member_type() ) . '.php',
    475476                        'members/index-directory.php'
    476477                ) );
    477478