siteurl vs. home – getting the blog domain
-
Hello,
I noticed Buddypress confuses the use of the WP “siteurl” and “home” variables.
The following scenario applies to WPMU 2.9.1.1 and BP 1.2 RC2.
I have moved all my core WPMU files to their own directory instead of the root. This requires me to update the “siteurl” variable to point to those files. The “home” variable still points to the domain. (As recommended in http://codex.wordpress.org/Changing_The_Site_URL)
Meanwhile, in bp-core.php, the bp_core_get_root_domain() description says: “@return $domain The domain URL for the blog.” However, the actual functions return the value of “siteurl” instead of “home.” In this case, “siteurl” is *not* the value of the domain. If I manual edit this core file to make the change the problem goes away.
Otherwise, the result is that some links generated by BP, i.e. adminbar, look like http://domain/wpdir/members instead of http://domain/members (the addition of the <wpdir> folder).
Can this be changed in the next release?
- The topic ‘siteurl vs. home – getting the blog domain’ is closed to new replies.