Skip to:
Content

BuddyPress.org

Ticket #7149: 7149.02.patch

File 7149.02.patch, 600 bytes (added by Offereins, 9 years ago)

Please ignore 7149.01.patch

  • src/bp-core/bp-core-template-loader.php

    diff --git a/src/bp-core/bp-core-template-loader.php b/src/bp-core/bp-core-template-loader.php
    index b8c1a5b..bc618fe 100644
    a b function bp_get_asset_template_part( $slug, $name = null ) { 
    9797 */
    9898function bp_locate_template( $template_names, $load = false, $require_once = true ) {
    9999
     100        // Bail when there are no templates to locate.
     101        if ( empty( $template_names ) ) {
     102                return '';
     103        }
     104
    100105        // No file found yet.
    101106        $located            = false;
    102107        $template_locations = bp_get_template_stack();