Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/17/2023 09:01:08 AM (9 months ago)
Author:
imath
Message:

Use BP Rewrites API functions instead of home_url() to build links

See #4954
Fixes #8937
Closes https://github.com/buddypress/buddypress/pull/131

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress-functions.php

    r13503 r13520  
    935935            break;
    936936        default:
    937             $feed_url = home_url( bp_get_activity_root_slug() . '/feed/' );
     937            $feed_url = bp_rewrites_get_url(
     938                array(
     939                    'component_id'       => 'activity',
     940                    'single_item_action' => 'feed',
     941                )
     942            );
    938943            break;
    939944    }
Note: See TracChangeset for help on using the changeset viewer.