Make WordPress Core

Ticket #19404: add.sub.items.diff

File add.sub.items.diff, 971 bytes (added by koopersmith, 13 years ago)
  • wp-includes/admin-bar.php

     
    536536                'href'  => admin_url('edit-comments.php'),
    537537                'meta'  => array( 'title' => $awaiting_title ),
    538538        ) );
     539
     540        if ( $awaiting_mod )
     541                $sub_title = sprintf( _n( '%s Comment', '%s Comments', $awaiting_mod ), number_format_i18n( $awaiting_mod ) );
     542        else
     543                $sub_title = __('Comments');
     544
     545        $wp_admin_bar->add_menu( array(
     546                'parent' => 'comments',
     547                'id'     => 'comments-title',
     548                'title'  => esc_attr( $sub_title ),
     549                'href'   => admin_url('edit-comments.php'),
     550        ) );
    539551}
    540552
    541553/**
     
    587599                        'title' => $update_data['title'],
    588600                ),
    589601        ) );
     602
     603        $wp_admin_bar->add_menu( array(
     604                'parent' => 'updates',
     605                'id'     => 'updates-title',
     606                'title'  => $update_data['title'],
     607                'href'   => network_admin_url( 'update-core.php' ),
     608        ) );
    590609}
    591610
    592611/**