Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/09/2014 09:14:20 PM (10 years ago)
Author:
imath
Message:

Make sure the register item of a dynamic BuddyPress nav menu is displayed to a logged out user

In case the slug of the Register directory page has been changed, the register item was not displayed to logged out user.
Instead of the Register directory page slug, we need to use the string "register" in a similar approach to the login item.

Fixes #5322

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.9/bp-core/bp-core-functions.php

    r7642 r7734  
    17291729        $bp_menu_items[] = array(
    17301730            'name' => $register_page->post_title,
    1731             'slug' => $register_page->post_name,
     1731            'slug' => 'register',
    17321732            'link' => get_permalink( $register_page->ID ),
    17331733        );
Note: See TracChangeset for help on using the changeset viewer.