[buddypress-trac] [BuddyPress Trac] #5883: bp_core_new_nav_item does not work with a hyphen in the slug

buddypress-trac noreply at wordpress.org
Wed Sep 17 21:19:13 UTC 2014


#5883: bp_core_new_nav_item does not work with a hyphen in the slug
--------------------------+-----------------------------
 Reporter:  zudie         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Members       |    Version:  2.0.3
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Adding an extra page to the Profile menu. The following code works:
 {{{
 bp_core_new_nav_item(
         array(
                                 'name' => 'My Lot',
                                 'slug' => 'mylot',
                                 'parent_url' => $bp->loggedin_user->domain
 . $bp->members->slug . '/',
                                 'parent_slug' => $bp->members->slug,
                                 'default_subnav_slug' => 'mylot',
                                 'position' => 80,
                                 'show_for_displayed_user' => true,
                                 'screen_function' => 'im_my_lot_nav',
                                 'item_css_id' => 'mylot'
         ));
 }}}

 Now if I change the slug to 'my-lot' the page isn't found anymore and the
 Members List is displayed instead.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5883>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list