Skip to:
Content

BuddyPress.org

Changeset 10219


Ignore:
Timestamp:
10/08/2015 07:26:31 PM (4 years ago)
Author:
r-a-y
Message:

Remove unnecessary new variable from r10218.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-screens.php

    r10218 r10219  
    465465
    466466        // Set up the template hierarchy
    467         $hierarchy = array();
     467        $new_templates = array();
    468468        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';
     469            $new_templates[] = 'members/index-directory-type-' . sanitize_file_name( bp_get_current_member_type() ) . '.php';
     470        }
     471        $new_templates[] = 'members/index-directory.php';
    472472
    473473        /**
     
    478478         * @param array $value Array of template paths to add to hierarchy.
    479479         */
    480         $new_templates = apply_filters( 'bp_template_hierarchy_members_directory', $hierarchy );
     480        $new_templates = apply_filters( 'bp_template_hierarchy_members_directory', $new_templates );
    481481
    482482        // Merge new templates with existing stack
Note: See TracChangeset for help on using the changeset viewer.