[buddypress-trac] [BuddyPress] #2520: No Multisite no 'my-blogs' adminbar menu item - replacement function to add dashboard links
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Sun Jul 11 12:54:24 UTC 2010
#2520: No Multisite no 'my-blogs' adminbar menu item - replacement function to
add dashboard links
-------------------------+--------------------------------------------------
Reporter: hnla | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone: 1.3
Component: Core | Keywords: bp_adminbar, menus
-------------------------+--------------------------------------------------
This is thrown up and is minor issue/enhancement.
On non multisite installs adminbar does not have my-blogs link thus no
easy access to dashboard.
Added new function to add back links to various dashboard pages in bp-
core-adminbar.php for testing removed to functions.php for practicalities
sake.
{{{<?php function no_multisite_dashboard_link() {
global $bp; ?>
<li><a href="<?php site_url() ?>/wp-admin/">Dashboard</a>
<ul>
<li><a href="<?php site_url() ?>/wp-admin/post-new.php">Post
New</a></li>
<li><a href="<?php site_url() ?>/wp-admin/post-
new.php?post_type=page">Create Page</a></li>
<li><a href="<?php site_url() ?>/wp-
admin/widgets.php">Widgets</a></li>
</ul>
</li>
<?php }
if (!bp_core_is_multisite())
add_action('bp_adminbar_menus', 'no_multisite_dashboard_link');
}}}
Just throwing this out there and expect there is a better approach to this
working the existing function bp_adminbar_blogs_menu()
--
Ticket URL: <http://trac.buddypress.org/ticket/2520>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list