Ticket #13936: 13936.diff
| File 13936.diff, 1.2 KB (added by , 16 years ago) |
|---|
-
menu.php
85 85 $submenu['edit.php'][10] = array( _x('Add New', 'post'), 'edit_posts', 'post-new.php' ); 86 86 87 87 $i = 15; 88 foreach ( $wp_taxonomiesas $tax ) {88 foreach ( get_taxonomies( array(), 'objects' ) as $tax ) { 89 89 if ( ! $tax->show_ui || ! in_array('post', (array) $tax->object_type, true) ) 90 90 continue; 91 91 … … 109 109 /* translators: add new page */ 110 110 $submenu['edit.php?post_type=page'][10] = array( _x('Add New', 'page'), 'edit_pages', 'post-new.php?post_type=page' ); 111 111 $i = 15; 112 foreach ( $wp_taxonomiesas $tax ) {112 foreach ( get_taxonomies( array(), 'objects' ) as $tax ) { 113 113 if ( ! $tax->show_ui || ! in_array('page', (array) $tax->object_type, true) ) 114 114 continue; 115 115 … … 143 143 $submenu["edit.php?post_type=$ptype"][10] = array( $ptype_obj->labels->add_new, $ptype_obj->cap->edit_posts, "post-new.php?post_type=$ptype" ); 144 144 145 145 $i = 15; 146 foreach ( $wp_taxonomiesas $tax ) {146 foreach ( get_taxonomies( array(), 'objects' ) as $tax ) { 147 147 if ( ! $tax->show_ui || ! in_array($ptype, (array) $tax->object_type, true) ) 148 148 continue; 149 149