Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Permalinks setup with WP intalled in subdirectory and index.php in root


Gianfranco
Participant

@gian-ava

I am not totally comfortable with changing stuff in core files, without some guru out there telling me what to do, but is it possible that to solve the issue one needs to customize bp-core.php?

These particular lines grabbed my attention. Again, I am not going to play with it, before any good advise.

Line 95:

/* The domain for the root of the site where the main blog resides */

$bp->root_domain = bp_core_get_root_domain();

Line 608:

/**

* bp_core_get_root_domain()

*

* Returns the domain for the root blog.

* eg: http://domain.com/ OR https://domain.com

*

* @package BuddyPress Core

* @uses get_blog_option() WordPress function to fetch blog meta.

* @return $domain The domain URL for the blog.

*/

function bp_core_get_root_domain() {

global $current_blog;

if ( defined( ‘BP_ENABLE_MULTIBLOG’ ) )

$domain = get_blog_option( $current_blog->blog_id, ‘siteurl’ );

else

$domain = get_blog_option( BP_ROOT_BLOG, ‘siteurl’ );

return apply_filters( ‘bp_core_get_root_domain’, $domain );

}

Skip to toolbar