WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/12/2010 12:15:31 AM (10 years ago)
Author:
scribu
Message:

Small, subtle fixes. See #14596

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r15491 r15493  
    18151815        case 'edit-pages':
    18161816            $post_type = 'post';
    1817             if ( isset($_GET['post_type']) && in_array( $_GET['post_type'], get_post_types( array('public' => true ) ) ) )
     1817            if ( isset($_GET['post_type']) && in_array( $_GET['post_type'], get_post_types( array( 'show_ui' => true ) ) ) )
    18181818                $post_type = $_GET['post_type'];
    18191819            $post_type_object = get_post_type_object($post_type);
Note: See TracChangeset for help on using the changeset viewer.