[buddypress-trac] [BuddyPress] #3622: bp_get_sitewide_activity_feed_link()

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun Sep 25 19:34:37 UTC 2011


#3622: bp_get_sitewide_activity_feed_link()
-------------------------------------------------+-------------------------
 Reporter:  webraket                             |       Owner:
     Type:  defect                               |      Status:  new
 Priority:  normal                               |   Milestone:  1.5.1
Component:  Activity                             |     Version:  1.5
 Severity:  major                                |  Resolution:
 Keywords:  has-patch needs-testing reporter-    |
  feedback                                       |
-------------------------------------------------+-------------------------

Comment (by webraket):

 ''The patch 3622.02 is attached to this ticket''
 I only see patch 3622.01 ?

 For my temporary fix
 {{{
 $this->feed_urls[] = network_home_url().'activity/feed/';
 }}}
 I now use bp_get_root_domain() as you advised.

 I also did some debugging with:
 {{{
 die(bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/feed/');
 }}}

 Hooked to init it returns http://rootdomain.com//feed/
 Hooked to wp_footer it returns http://rootdomain.com/activity/feed/

 bp_init seems to be hooked to init with priority less then 10, so that
 should make no difference.
 It is already executed before my plugin comes into place.

 I wonder why bp_get_activity_root_slug() returns a empty string at this
 point.
 At which point is $bp->activity->root_slug currently defined in the
 source?

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3622#comment:8>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list