Changeset 6327
- Timestamp:
- 02/26/2017 08:52:38 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/extend/buddypress/members.php
r6326 r6327 16 16 * 17 17 * @since 2.2.0 bbPress (r4395) 18 * @since 2.6.0 bbPress (r6320) Add engagements support 18 19 * 19 20 * @package bbPress … … 63 64 * 64 65 * @since 2.2.0 bbPress (r4395) 66 * @since 2.6.0 bbPress (r6320) Add engagements support 65 67 * 66 68 * @access private … … 81 83 * 82 84 * @since 2.0.0 bbPress (r3401) 85 * @since 2.6.0 bbPress (r6320) Add engagements support 83 86 * 84 87 * @param string $url … … 97 100 $profile_url = ''; 98 101 $component_slug = bbpress()->extend->buddypress->slug; 102 $profile_url = bp_core_get_user_domain( $user_id ); 99 103 100 104 // Special handling for forum component … … 102 106 103 107 // Empty action or 'topics' action 104 if ( ! bp_current_action() || bp_is_current_action( bbp_get_topic_archive_slug() ) ) {105 $profile_url = bp_core_get_user_domain( $user_id ). $component_slug . '/' . bbp_get_topic_archive_slug();108 if ( ! bp_current_action() || bp_is_current_action( bbp_get_topic_archive_slug() ) ) { 109 $profile_url = $profile_url . $component_slug . '/' . bbp_get_topic_archive_slug(); 106 110 107 111 // Empty action or 'topics' action 108 112 } elseif ( bp_is_current_action( bbp_get_reply_archive_slug() ) ) { 109 $profile_url = bp_core_get_user_domain( $user_id ). $component_slug . '/' . bbp_get_reply_archive_slug();113 $profile_url = $profile_url . $component_slug . '/' . bbp_get_reply_archive_slug(); 110 114 111 115 // 'favorites' action … … 119 123 // 'engagements' action 120 124 } elseif ( bbp_is_engagements_active() && bp_is_current_action( bbp_get_user_engagements_slug() ) ) { 121 $profile_url = $this->get_ subscriptions_permalink( '',$user_id );125 $profile_url = $this->get_engagements_permalink( $user_id ); 122 126 } 123 124 // Not in users' forums area125 } else {126 $profile_url = bp_core_get_user_domain( $user_id );127 127 } 128 128 … … 148 148 $component_slug = bbpress()->extend->buddypress->slug; 149 149 $url = trailingslashit( bp_core_get_user_domain( $user_id ) . $component_slug . '/' . bbp_get_user_favorites_slug() ); 150 150 151 return $url; 151 152 } … … 169 170 $component_slug = bbpress()->extend->buddypress->slug; 170 171 $url = trailingslashit( bp_core_get_user_domain( $user_id ) . $component_slug . '/' . bbp_get_user_subscriptions_slug() ); 172 171 173 return $url; 172 174 } … … 190 192 $component_slug = bbpress()->extend->buddypress->slug; 191 193 $url = trailingslashit( bp_core_get_user_domain( $user_id ) . $component_slug . '/' . bbp_get_user_engagements_slug() ); 194 192 195 return $url; 193 196 } … … 198 201 * 199 202 * @since 2.3.0 bbPress (r4615) 203 * @since 2.6.0 bbPress (r6320) Add engagements support 200 204 * 201 205 * @global WP_Query $wp_query
Note: See TracChangeset
for help on using the changeset viewer.