Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#2521 closed defect (bug) (fixed)

Settings Navigation Menu Missing

Reported by: jeffsayre's profile jeffsayre Owned by:
Milestone: 1.2.6 Priority: trivial
Severity: Version:
Component: Core Keywords: has-patch, needs-testing
Cc:

Description

With the recent improvements and fixes to BuddyPress' hook firing sequence ( see http://trac.buddypress.org/ticket/2325 ), the way in which navigation menu items are loaded was changed. Instead of the old way of hooking a menu item to the "wp" and "admin_menu" action hooks, an improved BP-specific method was created -- the "bp_setup_nav" action hook.

However, the hook to which the Settings navigation menu item is tied in bp-core-settings.php was not changed. bp_core_add_settings_nav() is still tied to the old two hooks. This results in the function not firing and means that the Settings navigation menu will not be displayed. See attached screenshots.

NOTE: It is important to make sure this change is made along with the changes in this Trac ticket http://trac.buddypress.org/ticket/2517

Attachments (3)

jeffsayre_2521_core_settings.patch (1.1 KB) - added by jeffsayre 14 years ago.
Patch to bp_core_settings.php to make Settings navigation menu work
Settings_menu_not_visible.png (29.0 KB) - added by jeffsayre 14 years ago.
Without patch, Settings menu does not appear
Settings_menu_visible.png (29.3 KB) - added by jeffsayre 14 years ago.
With patch, Settings menu does appear

Download all attachments as: .zip

Change History (13)

@jeffsayre
14 years ago

Patch to bp_core_settings.php to make Settings navigation menu work

@jeffsayre
14 years ago

Without patch, Settings menu does not appear

@jeffsayre
14 years ago

With patch, Settings menu does appear

#1 @intimez
14 years ago

I do not see this problem and see settings menu for both wpms and wp.

#2 @jeffsayre
14 years ago

  • Priority changed from major to normal

Alright, so I'm reducing this bug to normal based on above feedback. But, this is a bug for some people -- like me, for instance -- and we should make the change as all the other BP core navigation menu items are hooked to the "bp_setup_nav" action hook and not the "wp" and "admin_menu" action hooks. This will make it work for everyone.

#3 @nuprn1
14 years ago

Interesting

I had no issues with seeing Settings parent nav on BP1.2.5.2 - WP3.0/single before this patch. But I did have one problem where I was unable to add subnav items to 'Settings' but this fixed it.

so +1 for unintentional bug fix :-P

#4 @hnla
14 years ago

Confirming intimez's comment, but not arguing patch isn't required.

WP 3.0 MS BP 1.2.6 - Settings navigation items rendered ok

#5 @pisanojm
14 years ago

I can confirm that I can see SETTINGS without the patch... WP 3.0 BP 1.2.5.2/single. I can see as both an Admin and Subscriber. Also, not arguing that it doesn't fix hnla's comment.

#6 @pisanojm
14 years ago

Also, Adding/changing the code (1.2.5.2) to the patch... does not appear to affect the site adversely...

FYI

#7 @johnjamesjacoby
14 years ago

Can't duplicate this myself.

#8 @johnjamesjacoby
14 years ago

  • Priority changed from normal to trivial

Moving to trivial because it can't be duplicated. Might get bumped to 1.3 unless we get some more action on this.

#9 @r-a-y
14 years ago

What about @nuprn1's comment, JJJ?

#10 @johnjamesjacoby
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3146]) Fixes #2521 props jeffsayre

Note: See TracTickets for help on using tickets.