Skip to:
Content

BuddyPress.org

Ticket #7124: 7124.patch

File 7124.patch, 542 bytes (added by imath, 7 years ago)
  • src/bp-core/bp-core-template-loader.php

    diff --git src/bp-core/bp-core-template-loader.php src/bp-core/bp-core-template-loader.php
    index 620be05..c6aba79 100644
    function bp_locate_template_asset( $filename ) { 
    178178
    179179        $find = array(
    180180                get_theme_root(),
    181                 buddypress()->plugin_dir
     181                bp_get_theme_compat_dir()
    182182        );
    183183
    184184        $replace = array(
    185185                get_theme_root_uri(),
    186                 buddypress()->plugin_url
     186                bp_get_theme_compat_url()
    187187        );
    188188
    189189        // Make sure URI path is relative to site URL.