[buddypress-trac] [BuddyPress] #1936: Update 'siteurl' variable 'home'

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat Feb 13 13:27:14 UTC 2010


#1936: Update 'siteurl' variable 'home'
-------------------------------------+--------------------------------------
Reporter:  bebradsm1                 |       Owner:     
    Type:  defect                    |      Status:  new
Priority:  minor                     |   Milestone:  1.3
Keywords:  siteurl home domain core  |  
-------------------------------------+--------------------------------------
 Originally posted at: http://buddypress.org/forums/topic/siteurl-vs-home-
 getting-the-blog-domain?replies=1#post-36679

 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).

-- 
Ticket URL: <http://trac.buddypress.org/ticket/1936>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list