$menu[15
] = array
( __( 'Links'
), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'dashicons-admin-links'
);
$submenu['link-manager.php'
][5
] = array
( _x( 'All Links', 'admin menu'
), 'manage_links', 'link-manager.php'
);
/* translators: Add new links. */
$submenu['link-manager.php'
][10
] = array
( _x( 'Add New', 'link'
), 'manage_links', 'link-add.php'
);
$submenu['link-manager.php'
][15
] = array
( __( 'Link Categories'
), 'manage_categories', 'edit-tags.php?taxonomy=link_category'
);
// $menu[20] = Pages.
// Avoid the comment count query for users who cannot edit_posts.
if ( current_user_can( 'edit_posts'
) ) { $awaiting_mod =
wp_count_comments();
$awaiting_mod =
$awaiting_mod->moderated;
$awaiting_mod_i18n =
number_format_i18n( $awaiting_mod );
/* translators: %s: Number of comments. */
$awaiting_mod_text =
sprintf( _n( '%s Comment in moderation', '%s Comments in moderation',
$awaiting_mod ),
$awaiting_mod_i18n );
$menu[25
] = array
( /* translators: %s: Number of comments. */
sprintf( __( 'Comments %s'
), '<span class="awaiting-mod count-' .
absint( $awaiting_mod ) . '"><span class="pending-count" aria-hidden="true">' .
$awaiting_mod_i18n . '</span><span class="comments-in-moderation-text screen-reader-text">' .
$awaiting_mod_text . '</span></span>'
),
'edit_posts',
'edit-comments.php',
'',