Skip to:
Content

BuddyPress.org

Ticket #954: ticket_954-3.patch

File ticket_954-3.patch, 642 bytes (added by DJPaul, 15 years ago)
  • bp-core/bp-core-catchuri.php

     
    210210
    211211        if ( $located_template = locate_template( array( $page . '.php' ) ) ) {
    212212                load_template( apply_filters( 'bp_load_template', $located_template ) );
     213        } else if ( ( $located_template = apply_filters( 'bp_check_plugin_template', $page ) ) && $located_template != $page ) {
     214                load_template( $located_template );
    213215        } else {
    214216                if ( $located_template = locate_template( array( '404.php' ) ) ) {
    215217                        status_header( 404 );