Skip to:
Content

BuddyPress.org

Ticket #1733: bp_located_template.patch

File bp_located_template.patch, 1.0 KB (added by MrMaz, 15 years ago)

patch for bp-core-catchuri.php

  • bp-core-catchuri.php

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: \\UBU\www\sandbox2\public_html\wp-content\plugins\buddypress\bp-core
    # This patch can be applied using context Tools: Patch action on respective folder.
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    254254                bp_core_redirect( $bp->root_domain );
    255255
    256256        // If the template file doesn't exist, redirect to the root domain.
    257         if ( !bp_is_blog_page() && !file_exists( locate_template( array( $bp_path . '.php' ), false ) ) )
    258  No newline at end of file
     257        if ( !bp_is_blog_page() && !file_exists( apply_filters( 'bp_located_template', locate_template( array( $bp_path . '.php' ), false ), $bp_path ) ) )
     258 No newline at end of file
    259259                bp_core_redirect( $bp->root_domain );
    260260