Skip to:
Content

bbPress.org

Changeset 6805


Ignore:
Timestamp:
04/22/2018 11:13:13 PM (7 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress: clean up new get_profile_url() method.

See r6804.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/members.php

    r6804 r6805  
    216216
    217217        // Setup profile URL
    218         $url = array(
    219             bp_core_get_user_domain( $user_id ),
    220             bbpress()->extend->buddypress->slug
    221         );
     218        $url = array( bp_core_get_user_domain( $user_id ) );
    222219
    223220        // Maybe push slug to end of URL array
    224221        if ( ! empty( $slug ) ) {
     222            array_push( $url, bbpress()->extend->buddypress->slug );
    225223            array_push( $url, $slug );
    226224        }
    227225
    228         // Slash it
    229         $url = array_map( 'trailingslashit', $url );
    230 
    231226        // Return
    232         return implode( '', $url );
     227        return implode( '', array_map( 'trailingslashit', $url ) );
    233228    }
    234229}
Note: See TracChangeset for help on using the changeset viewer.