Skip to:
Content
Pages
Categories
Search
Top
Bottom

siteurl vs. home – getting the blog domain


  • anonymous
    Participant

    @bebradsm1

    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)
  • Please open a 1.3 milestone ticket for this.

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


    anonymous
    Participant

    @bebradsm1

    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 Rennick
    Participant

    @andrea_r

    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

    @ousep

    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.

    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