- Timestamp:
- 03/27/2023 06:19:06 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-notifications/classes/class-bp-notifications-component.php
r13441 r13442 221 221 // Menus for logged in user. 222 222 if ( is_user_logged_in() ) { 223 224 // Setup the logged in user variables. 225 $notifications_link = trailingslashit( bp_loggedin_user_domain() . bp_get_notifications_slug() ); 223 $notifications_slug = bp_get_notifications_slug(); 224 $custom_notifications_slug = bp_rewrites_get_slug( 'members', 'member_' . $notifications_slug, $notifications_slug ); 226 225 227 226 // Pending notification requests. … … 248 247 'id' => 'my-account-' . $this->id, 249 248 'title' => $title, 250 'href' => $notifications_link, 249 'href' => bp_loggedin_user_url( 250 array( 251 'single_item_component' => $custom_notifications_slug, 252 ) 253 ), 251 254 ); 252 255 … … 256 259 'id' => 'my-account-' . $this->id . '-unread', 257 260 'title' => $unread, 258 'href' => trailingslashit( $notifications_link . 'unread' ), 261 'href' => bp_loggedin_user_url( 262 array( 263 'single_item_component' => $custom_notifications_slug, 264 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $notifications_slug . '_unread', 'unread' ), 265 ) 266 ), 259 267 'position' => 10, 260 268 ); … … 265 273 'id' => 'my-account-' . $this->id . '-read', 266 274 'title' => _x( 'Read', 'My Account Notification sub nav', 'buddypress' ), 267 'href' => trailingslashit( $notifications_link . 'read' ), 275 'href' => bp_loggedin_user_url( 276 array( 277 'single_item_component' => $custom_notifications_slug, 278 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $notifications_slug . '_read', 'read' ), 279 ) 280 ), 268 281 'position' => 20, 269 282 );
Note: See TracChangeset
for help on using the changeset viewer.