Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/25/2021 08:13:04 AM (3 years ago)
Author:
imath
Message:

Make sure bp_core_new_nav_default() updates the previous default nav

  • The previous default nav item needs to have its slug added to its link property.
  • The default subnav slug needs to be added to the URL used by the corresponding wp_admin_nav item.
  • The new default nav item needs to have its slug removed from its link property.

Fixes #8471

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-notifications/classes/class-bp-notifications-component.php

    r13091 r13093  
    258258                'id'       => 'my-account-' . $this->id . '-unread',
    259259                'title'    => $unread,
    260                 'href'     => $notifications_link,
     260                'href'     => trailingslashit( $notifications_link . 'unread' ),
    261261                'position' => 10,
    262262            );
Note: See TracChangeset for help on using the changeset viewer.