Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#33270 closed enhancement (invalid)

add attribute View profile

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

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
11 years ago

  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status newclosed

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
11 years ago

  • Resolution invalid
  • Status closedreopened

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
11 years ago

  • Resolutioninvalid
  • Status reopenedclosed

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
11 years ago

  • Component MenusToolbar
Note: See TracTickets for help on using tickets.