Skip to:
Content
Pages
Categories
Search
Top
Bottom

siteurl vs. home – getting the blog domain

  • @bebradsm1

    Participant

    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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • @apeatling

    Keymaster

    Please open a 1.3 milestone ticket for this.

    @apeatling

    Keymaster

    In the meantime you could filter the output of the functions you believe are a problem.

    @bebradsm1

    Participant

    Opened a ticket: https://trac.buddypress.org/ticket/1936

    I will look into making a filter, thanks for letting me it could be done.

    @andrea_r

    Participant

    Um, I commented on the ticket, but it’s been my understanding all along that moving MU out of the root just plain ol’ hasn’t been working. Like ever. It messes up the member blogs.

    @ousep

    Participant

    This is a problem with regular WP, though. (WP 2.9.2 + BP 1.2.1)

    On shifting my WP files from the parent directory (example.com) to a separate WP directory (example.com/wp/), Buddypress URLs contain a /wp/ in them, by default.

    For instance, the admin profile url is example.com/wp/members/admin. Manually typing in example.com/members/admin will get you to the same page, without any errors, but all inks generated by BP contain /wp in them.

    @ptroxler

    Member

    this is now “fixed” and thankfully does corrupt the login option in the admin bar — unlike the wp_loginout() it does NOT generate the correct link to wp_login.php …

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘siteurl vs. home – getting the blog domain’ is closed to new replies.
Skip to toolbar