Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#33270 closed enhancement (invalid)

add attribute View profile

Reported by: cocolabombe0's profile cocolabombe0 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.2.4
Component: Toolbar Keywords:
Focuses: Cc:

Description

Hello, I use bbpress and wanted to separate in the admin bar profile and change profile.
I found how to do the admin-file bar.php but that possible to add a variable to the profile?
Here is my code
$wp_admin_bar->add_menu( array(
...
'href' => ('/forums/membre/'. $current_user->user_login),

I ask to have a variable like 'href' => $profile_url, different from edit to edit the profile link more easily and like that the update no longer modifirai the file.
sincerely Nicolas

Change History (4)

#1 @netweb
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi cocolabombe0

This site is for reporting bugs with WordPress, your best option here is to post on the bbPress support forum for help.

https://bbpress.org/forums

#2 @cocolabombe0
9 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

In made is not a concern of bbpress.
The problem is that the two identities are the same variable.

$wp_admin_bar->add_menu( array(
		'parent' => 'user-actions',
		'id'     => 'user-info',
		'title'  => $user_info,
		'href'   => $profile_url,
		'meta'   => array(
			'tabindex' => -1,
		),
	) );
	$wp_admin_bar->add_menu( array(
		'parent' => 'user-actions',
		'id'     => 'edit-profile',
		'title'  => __( 'Edit My Profile' ),
		'href' => $profile_url,
	) );

We can see that the href is the same so I can not separate the links.

#3 @netweb
9 years ago

  • Resolution set to invalid
  • Status changed from reopened to closed

This is not a bug in WordPress, you can see what you are wanting to do in action on https://bbpress.org

e.g. https://cloudup.com/cpQ7nyIIfLk

You can also see the code we use in our theme here, but again this isn't a WordPress bug so please post on bbpress.org if your looking for help on adding bbPress user data to the wp_admin menu.

#4 @SergeyBiryukov
9 years ago

  • Component changed from Menus to Toolbar
Note: See TracTickets for help on using tickets.