- Timestamp:
- 06/18/2023 04:11:04 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-notifications/classes/class-bp-notifications-component.php
r13495 r13503 232 232 // Menus for logged in user. 233 233 if ( is_user_logged_in() ) { 234 $notifications_slug = bp_get_notifications_slug(); 235 $custom_notifications_slug = bp_rewrites_get_slug( 'members', 'member_' . $notifications_slug, $notifications_slug ); 234 $notifications_slug = bp_get_notifications_slug(); 236 235 237 236 // Pending notification requests. … … 258 257 'id' => 'my-account-' . $this->id, 259 258 'title' => $title, 260 'href' => bp_loggedin_user_url( 261 array( 262 'single_item_component' => $custom_notifications_slug, 263 ) 264 ), 259 'href' => bp_loggedin_user_url( bp_members_get_path_chunks( array( $notifications_slug ) ) ), 265 260 ); 266 261 … … 270 265 'id' => 'my-account-' . $this->id . '-unread', 271 266 'title' => $unread, 272 'href' => bp_loggedin_user_url( 273 array( 274 'single_item_component' => $custom_notifications_slug, 275 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $notifications_slug . '_unread', 'unread' ), 276 ) 277 ), 267 'href' => bp_loggedin_user_url( bp_members_get_path_chunks( array( $notifications_slug, 'unread' ) ) ), 278 268 'position' => 10, 279 269 ); … … 284 274 'id' => 'my-account-' . $this->id . '-read', 285 275 'title' => _x( 'Read', 'My Account Notification sub nav', 'buddypress' ), 286 'href' => bp_loggedin_user_url( 287 array( 288 'single_item_component' => $custom_notifications_slug, 289 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $notifications_slug . '_read', 'read' ), 290 ) 291 ), 276 'href' => bp_loggedin_user_url( bp_members_get_path_chunks( array( $notifications_slug, 'read' ) ) ), 292 277 'position' => 20, 293 278 );
Note: See TracChangeset
for help on using the changeset viewer.