Make WordPress Core


Ignore:
Timestamp:
06/27/2010 08:38:06 AM (14 years ago)
Author:
nacin
Message:

screen_options() for 'show on screen' should look for show_ui post types, not public.

File:
1 edited

Legend:

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

    r15336 r15339  
    37373737        case 'edit-pages':
    37383738            $post_type = 'post';
    3739             if ( isset($_GET['post_type']) && in_array( $_GET['post_type'], get_post_types( array('public' => true ) ) ) )
     3739            if ( isset($_GET['post_type']) && in_array( $_GET['post_type'], get_post_types( array('show_ui' => true ) ) ) )
    37403740                $post_type = $_GET['post_type'];
    37413741            $post_type_object = get_post_type_object($post_type);
Note: See TracChangeset for help on using the changeset viewer.