$menu[4
] = array
( '', 'read', 'separator1', '', 'wp-menu-separator'
);
// $menu[5] = Posts.
$menu[10
] = array
( __( 'Media'
), 'upload_files', 'upload.php', '', 'menu-top menu-icon-media', 'menu-media', 'dashicons-admin-media'
);
$submenu['upload.php'
][5
] = array
( __( 'Library'
), 'upload_files', 'upload.php'
);
/* translators: Add new file. */
$submenu['upload.php'
][10
] = array
( _x( 'Add New', 'file'
), 'upload_files', 'media-new.php'
);
$i = 15;
foreach ( get_taxonomies_for_attachments( 'objects'
) as $tax ) { if ( !
$tax->show_ui || !
$tax->show_in_menu
) { continue;
} $submenu['upload.php'
][ $i++
] = array
( esc_attr( $tax->labels->menu_name
),
$tax->cap->manage_terms, 'edit-tags.php?taxonomy=' .
$tax->name . '&post_type=attachment'
);
} unset( $tax,
$i );
$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. */