Changeset 6805
- Timestamp:
- 04/22/2018 11:13:13 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/extend/buddypress/members.php
r6804 r6805 216 216 217 217 // 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 ) ); 222 219 223 220 // Maybe push slug to end of URL array 224 221 if ( ! empty( $slug ) ) { 222 array_push( $url, bbpress()->extend->buddypress->slug ); 225 223 array_push( $url, $slug ); 226 224 } 227 225 228 // Slash it229 $url = array_map( 'trailingslashit', $url );230 231 226 // Return 232 return implode( '', $url);227 return implode( '', array_map( 'trailingslashit', $url ) ); 233 228 } 234 229 }
Note: See TracChangeset
for help on using the changeset viewer.