Changeset 33867 for trunk/src/wp-admin/menu.php
- Timestamp:
- 09/02/2015 06:47:51 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/menu.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu.php
r33723 r33867 51 51 /* translators: add new file */ 52 52 $submenu['upload.php'][10] = array( _x('Add New', 'file'), 'upload_files', 'media-new.php'); 53 $i = 15; 53 54 foreach ( get_taxonomies_for_attachments( 'objects' ) as $tax ) { 54 55 if ( ! $tax->show_ui || ! $tax->show_in_menu ) … … 57 58 $submenu['upload.php'][$i++] = array( esc_attr( $tax->labels->menu_name ), $tax->cap->manage_terms, 'edit-tags.php?taxonomy=' . $tax->name . '&post_type=attachment' ); 58 59 } 59 unset( $tax);60 unset( $tax, $i ); 60 61 61 62 $menu[15] = array( __('Links'), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'dashicons-admin-links' );
Note: See TracChangeset
for help on using the changeset viewer.