Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/09/2015 11:34:12 PM (5 years ago)
Author:
johnjamesjacoby
Message:

Replace all references to bp_get_root_domain() . '/' . bp_get_groups_root_slug() with the appropriate bp_get_groups_directory_permalink() function. This ensures all usages and filters are applied uniformly. See #4954 for the long-game here.

File:
1 edited

Legend:

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

    r9399 r9466  
    11521152        $user = new BP_Core_User( $friend_id );
    11531153
    1154         $uninvite_url = bp_is_current_action( 'create' ) ? bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create/step/group-invites/?user_id=' . $friend_id : bp_get_group_permalink( $group ) . 'send-invites/remove/' . $friend_id;
     1154        $uninvite_url = bp_is_current_action( 'create' )
     1155            ? bp_get_groups_directory_permalink() . 'create/step/group-invites/?user_id=' . $friend_id
     1156            : bp_get_group_permalink( $group )    . 'send-invites/remove/' . $friend_id;
    11551157
    11561158        echo '<li id="uid-' . esc_attr( $user->id ) . '">';
Note: See TracChangeset for help on using the changeset viewer.