[buddypress-trac] [BuddyPress] #2706: Support WP 3.1 adminbar
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Mon Feb 21 07:22:59 UTC 2011
#2706: Support WP 3.1 adminbar
--------------------------+--------------------------
Reporter: DJPaul | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: 1.4
Component: Core | Version:
Resolution: | Keywords: dev-feedback
--------------------------+--------------------------
Changes (by cnorris23):
* keywords: => dev-feedback
Comment:
So I'm including a rough draft of a patch to utilize the WP Admin Bar.
There are two approaches that can be taken. One option is to just use the
API ($wp_admin_bar->add_menu()/$wp_admin_bar->remove_menu()/various hooks)
to add and remove menus however we need. The approach I've used in the
patch uses the WP filter that allows you to create your own class.
Extending isn't an option currently. In order to extend, we need a hook in
WP to include early enough for success... Unless of course I totally
missed something. I chose a new class as the course of action, because it
would allow us to control the search form that's added by default, as it
only searches posts and pages. It's commented out for now. There are a few
design decisions that need to be made. One being the search form, and
related to that is the "Random (item)" menu. On the original buddybar the
random menu is aligned right. There are a few other things, but my brain
is fried, and I'm sure you'll come across things. There's a lot of code
cleanup that can happen. To start though, I just wanted to get it working
and make sure the devs/community were okay with the approach before I went
through and cleaned.
--
Ticket URL: <https://trac.buddypress.org/ticket/2706#comment:7>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list