Changeset 16695
- Timestamp:
- 12/02/2010 09:32:19 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r16453 r16695 64 64 65 65 $i = 15; 66 foreach ( $wp_taxonomiesas $tax ) {66 foreach ( get_taxonomies( array(), 'objects' ) as $tax ) { 67 67 if ( ! $tax->show_ui || ! in_array('post', (array) $tax->object_type, true) ) 68 68 continue; … … 88 88 $submenu['edit.php?post_type=page'][10] = array( _x('Add New', 'page'), 'edit_pages', 'post-new.php?post_type=page' ); 89 89 $i = 15; 90 foreach ( $wp_taxonomiesas $tax ) {90 foreach ( get_taxonomies( array(), 'objects' ) as $tax ) { 91 91 if ( ! $tax->show_ui || ! in_array('page', (array) $tax->object_type, true) ) 92 92 continue; … … 128 128 129 129 $i = 15; 130 foreach ( $wp_taxonomiesas $tax ) {130 foreach ( get_taxonomies( array(), 'objects' ) as $tax ) { 131 131 if ( ! $tax->show_ui || ! in_array($ptype, (array) $tax->object_type, true) ) 132 132 continue;
Note: See TracChangeset
for help on using the changeset viewer.