Ticket #19404: add.sub.items.diff

File add.sub.items.diff, 971 bytes (added by koopersmith, 18 months ago)
Line 
1Index: wp-includes/admin-bar.php
2===================================================================
3--- wp-includes/admin-bar.php   (revision 19518)
4+++ wp-includes/admin-bar.php   (working copy)
5@@ -536,6 +536,18 @@
6                'href'  => admin_url('edit-comments.php'),
7                'meta'  => array( 'title' => $awaiting_title ),
8        ) );
9+
10+       if ( $awaiting_mod )
11+               $sub_title = sprintf( _n( '%s Comment', '%s Comments', $awaiting_mod ), number_format_i18n( $awaiting_mod ) );
12+       else
13+               $sub_title = __('Comments');
14+
15+       $wp_admin_bar->add_menu( array(
16+               'parent' => 'comments',
17+               'id'     => 'comments-title',
18+               'title'  => esc_attr( $sub_title ),
19+               'href'   => admin_url('edit-comments.php'),
20+       ) );
21 }
22 
23 /**
24@@ -587,6 +599,13 @@
25                        'title' => $update_data['title'],
26                ),
27        ) );
28+
29+       $wp_admin_bar->add_menu( array(
30+               'parent' => 'updates',
31+               'id'     => 'updates-title',
32+               'title'  => $update_data['title'],
33+               'href'   => network_admin_url( 'update-core.php' ),
34+       ) );
35 }
36 
37 /**