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-friends/classes/class-bp-friends-component.php

    r13092 r13093  
    272272                'id'       => 'my-account-' . $this->id . '-friendships',
    273273                'title'    => _x( 'Friendships', 'My Account Friends menu sub nav', 'buddypress' ),
    274                 'href'     => $friends_link,
     274                'href'     => trailingslashit( $friends_link . 'my-friends' ),
    275275                'position' => 10,
    276276            );
Note: See TracChangeset for help on using the changeset viewer.