Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/25/2021 08:13:04 AM (4 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-groups/classes/class-bp-groups-component.php

    r13087 r13093  
    844844                'id'       => 'my-account-' . $this->id . '-memberships',
    845845                'title'    => _x( 'Memberships', 'My Account Groups sub nav', 'buddypress' ),
    846                 'href'     => $groups_link,
     846                'href'     => trailingslashit( $groups_link . 'my-groups' ),
    847847                'position' => 10
    848848            );
Note: See TracChangeset for help on using the changeset viewer.