From 6b2be08f6b379360724fe2c121135976d257447d Mon Sep 17 00:00:00 2001 From: nacin Date: Sun, 27 Jun 2010 08:38:06 +0000 Subject: [PATCH] screen_options() for 'show on screen' should look for show_ui post types, not public. git-svn-id: http://svn.automattic.com/wordpress/trunk@15339 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 759d81878..e7276bf97 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -3736,7 +3736,7 @@ function screen_options($screen) { case 'edit': case 'edit-pages': $post_type = 'post'; - if ( isset($_GET['post_type']) && in_array( $_GET['post_type'], get_post_types( array('public' => true ) ) ) ) + if ( isset($_GET['post_type']) && in_array( $_GET['post_type'], get_post_types( array('show_ui' => true ) ) ) ) $post_type = $_GET['post_type']; $post_type_object = get_post_type_object($post_type); $per_page_label = $post_type_object->labels->name;