Make WordPress Core


Ignore:
Timestamp:
12/06/2010 03:41:19 PM (13 years ago)
Author:
nacin
Message:

Link to network/update-core when running multisite. Remove theme/plugin editors from blog menu when running multisite. Redirect to network/* when accessing theme/plugin-install/editor. props ocean90, see #15525.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r16743 r16747  
    279279    $update_title = sprintf( __('Updates %s'), "<span id='ab-updates' class='count-$update_count' title='$update_title'><span class='update-count'>" . number_format_i18n($update_count) . "</span></span>" );
    280280
    281     $wp_admin_bar->add_menu( array( 'id' => 'updates', 'title' => $update_title, 'href' => admin_url('update-core.php') ) );
     281    $href = is_multisite() ? network_admin_url( 'update-core.php' ) : admin_url( 'update-core.php' );
     282
     283    $wp_admin_bar->add_menu( array( 'id' => 'updates', 'title' => $update_title, 'href' => $href ) );
    282284}
    283285
Note: See TracChangeset for help on using the changeset viewer.