- Timestamp:
- 03/27/2023 06:19:06 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/activity/ajax.php
r13433 r13442 4 4 * 5 5 * @since 3.0.0 6 * @version 1 0.0.06 * @version 12.0.0 7 7 */ 8 8 … … 115 115 116 116 if ( 1 === $fav_count ) { 117 $activity_slug = bp_nouveau_get_component_slug( 'activity' ); 118 $custom_activity_slug = bp_rewrites_get_slug( 'members', 'member_' . $activity_slug, $activity_slug ); 119 $activity_favorites_url = bp_loggedin_user_url( 120 array( 121 'single_item_component' => $custom_activity_slug, 122 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $activity_slug . '_favorites', 'favorites' ), 123 ) 124 ); 125 117 126 $response['directory_tab'] = '<li id="activity-favorites" data-bp-scope="favorites" data-bp-object="activity"> 118 <a href="' . bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/favorites/">127 <a href="' . esc_url( $activity_favorites_url ). '"> 119 128 ' . esc_html__( 'My Favorites', 'buddypress' ) . ' 120 129 </a>
Note: See TracChangeset
for help on using the changeset viewer.