Changeset 25133 for trunk/src/wp-admin/menu.php
- Timestamp:
- 08/26/2013 10:34:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu.php
r25100 r25133 54 54 $i = 15; 55 55 foreach ( get_taxonomies( array(), 'objects' ) as $tax ) { 56 if ( ! $tax->show_ui || ! in_array('post', (array) $tax->object_type, true) )56 if ( ! $tax->show_ui || ! $tax->show_in_menu || ! in_array('post', (array) $tax->object_type, true) ) 57 57 continue; 58 58 … … 66 66 $submenu['upload.php'][10] = array( _x('Add New', 'file'), 'upload_files', 'media-new.php'); 67 67 foreach ( get_taxonomies_for_attachments( 'objects' ) as $tax ) { 68 if ( ! $tax->show_ui )68 if ( ! $tax->show_ui || ! $tax->show_in_menu ) 69 69 continue; 70 70 … … 85 85 $i = 15; 86 86 foreach ( get_taxonomies( array(), 'objects' ) as $tax ) { 87 if ( ! $tax->show_ui || ! in_array('page', (array) $tax->object_type, true) )87 if ( ! $tax->show_ui || ! $tax->show_in_menu || ! in_array('page', (array) $tax->object_type, true) ) 88 88 continue; 89 89 … … 127 127 $i = 15; 128 128 foreach ( get_taxonomies( array(), 'objects' ) as $tax ) { 129 if ( ! $tax->show_ui || ! in_array($ptype, (array) $tax->object_type, true) )129 if ( ! $tax->show_ui || ! $tax->show_in_menu || ! in_array($ptype, (array) $tax->object_type, true) ) 130 130 continue; 131 131
Note: See TracChangeset
for help on using the changeset viewer.