Make WordPress Core


Ignore:
Timestamp:
12/16/2010 06:12:55 AM (13 years ago)
Author:
nacin
Message:

Use maybe_network_admin_url. see #15840.

File:
1 edited

Legend:

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

    r16957 r16978  
    275275    $update_title .= '</span>';
    276276
    277     $href = is_multisite() ? network_admin_url( 'update-core.php' ) : admin_url( 'update-core.php' );
    278 
    279     $wp_admin_bar->add_menu( array( 'id' => 'updates', 'title' => $update_title, 'href' => $href ) );
     277    $wp_admin_bar->add_menu( array( 'id' => 'updates', 'title' => $update_title, 'href' => maybe_network_admin_url( 'update-core.php' ) ) );
    280278}
    281279
Note: See TracChangeset for help on using the changeset viewer.