File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6363 $ submenu ['edit.php ' ][10 ] = array ( _x ('Add New ' , 'post ' ), 'edit_posts ' , 'post-new.php ' );
6464
6565 $ i = 15 ;
66- foreach ( $ wp_taxonomies as $ tax ) {
66+ foreach ( get_taxonomies ( array (), ' objects ' ) as $ tax ) {
6767 if ( ! $ tax ->show_ui || ! in_array ('post ' , (array ) $ tax ->object_type , true ) )
6868 continue ;
6969
8787 /* translators: add new page */
8888 $ submenu ['edit.php?post_type=page ' ][10 ] = array ( _x ('Add New ' , 'page ' ), 'edit_pages ' , 'post-new.php?post_type=page ' );
8989 $ i = 15 ;
90- foreach ( $ wp_taxonomies as $ tax ) {
90+ foreach ( get_taxonomies ( array (), ' objects ' ) as $ tax ) {
9191 if ( ! $ tax ->show_ui || ! in_array ('page ' , (array ) $ tax ->object_type , true ) )
9292 continue ;
9393
127127 $ submenu ["edit.php?post_type= $ ptype " ][10 ] = array ( $ ptype_obj ->labels ->add_new , $ ptype_obj ->cap ->edit_posts , "post-new.php?post_type= $ ptype " );
128128
129129 $ i = 15 ;
130- foreach ( $ wp_taxonomies as $ tax ) {
130+ foreach ( get_taxonomies ( array (), ' objects ' ) as $ tax ) {
131131 if ( ! $ tax ->show_ui || ! in_array ($ ptype , (array ) $ tax ->object_type , true ) )
132132 continue ;
133133
You can’t perform that action at this time.
0 commit comments