Changeset 21485 for trunk/wp-includes/admin-bar.php
- Timestamp:
- 08/09/2012 04:28:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/admin-bar.php
r21425 r21485 345 345 346 346 foreach ( (array) $wp_admin_bar->user->blogs as $blog ) { 347 // @todo Replace with some favicon lookup.348 //$blavatar = '<img src="' . esc_url( blavatar_url( blavatar_domain( $blog->siteurl ), 'img', 16, $blue_wp_logo_url ) ) . '" alt="Blavatar" width="16" height="16" />'; 347 switch_to_blog( $blog->userblog_id ); 348 349 349 $blavatar = '<img src="' . esc_url($blue_wp_logo_url) . '" alt="' . esc_attr__( 'Blavatar' ) . '" width="16" height="16" class="blavatar"/>'; 350 350 … … 356 356 'id' => $menu_id, 357 357 'title' => $blavatar . $blogname, 358 'href' => get_admin_url( $blog->userblog_id),358 'href' => admin_url(), 359 359 ) ); 360 360 … … 363 363 'id' => $menu_id . '-d', 364 364 'title' => __( 'Dashboard' ), 365 'href' => get_admin_url( $blog->userblog_id),366 ) ); 367 368 if ( current_user_can _for_blog( $blog->userblog_id,'edit_posts' ) ) {365 'href' => admin_url(), 366 ) ); 367 368 if ( current_user_can( 'edit_posts' ) ) { 369 369 $wp_admin_bar->add_menu( array( 370 370 'parent' => $menu_id, 371 371 'id' => $menu_id . '-n', 372 372 'title' => __( 'New Post' ), 373 'href' => get_admin_url( $blog->userblog_id,'post-new.php' ),373 'href' => admin_url( 'post-new.php' ), 374 374 ) ); 375 375 $wp_admin_bar->add_menu( array( … … 377 377 'id' => $menu_id . '-c', 378 378 'title' => __( 'Manage Comments' ), 379 'href' => get_admin_url( $blog->userblog_id,'edit-comments.php' ),379 'href' => admin_url( 'edit-comments.php' ), 380 380 ) ); 381 381 } … … 385 385 'id' => $menu_id . '-v', 386 386 'title' => __( 'Visit Site' ), 387 'href' => get_home_url( $blog->userblog_id, '/' ), 388 ) ); 387 'href' => home_url( '/' ), 388 ) ); 389 390 restore_current_blog(); 389 391 } 390 392 }
Note: See TracChangeset
for help on using the changeset viewer.