WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/19/2010 10:21:29 AM (11 years ago)
Author:
dd32
Message:

First pass at giving taxonomies a show_ui param. See #10773

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu.php

    r13094 r13216  
    5858    $i = 15;
    5959    foreach ( $wp_taxonomies as $tax ) {
    60         if ( ! in_array('post', (array) $tax->object_type, true) )
     60        if ( ! $tax->show_ui || ! in_array('post', (array) $tax->object_type, true) )
    6161            continue;
    6262
     
    9595    $i = 15;
    9696    foreach ( $wp_taxonomies as $tax ) {
    97         if ( ! in_array($ptype, (array) $tax->object_type, true) )
     97        if ( ! $tax->show_ui || ! in_array($ptype, (array) $tax->object_type, true) )
    9898            continue;
    9999
Note: See TracChangeset for help on using the changeset viewer.