Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/22/2012 10:38:21 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Theme Compat:

  • Add 'bp_add_template_locations' filter back to 'bp_get_template_part' filter.
  • Add array_unique() to bp_add_template_locations() to remove possible duplicates.
  • See #3741.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-template-loader.php

    r6439 r6462  
    206206            $retval[] = ltrim( trailingslashit( $location ) . $template, '/' );
    207207
    208     return apply_filters( 'bp_add_template_locations', $retval, $templates );
     208    return apply_filters( 'bp_add_template_locations', array_unique( $retval ), $templates );
    209209}
    210210
Note: See TracChangeset for help on using the changeset viewer.