Skip to:
Content

BuddyPress.org

Changeset 7734


Ignore:
Timestamp:
01/09/2014 09:14:20 PM (11 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

Files:
2 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        );
  • trunk/bp-core/bp-core-functions.php

    r7704 r7734  
    17801780        $bp_menu_items[] = array(
    17811781            'name' => $register_page->post_title,
    1782             'slug' => $register_page->post_name,
     1782            'slug' => 'register',
    17831783            'link' => get_permalink( $register_page->ID ),
    17841784        );
Note: See TracChangeset for help on using the changeset viewer.