From 6a5c43f5fcd7c2706d317ad7d911e1455e516099 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 10 Feb 2010 17:41:07 +0000 Subject: [PATCH] Fix screen layout options for custom post types. see #9674 git-svn-id: https://develop.svn.wordpress.org/trunk@13045 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 edf6054513..7d56dc4288 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -3596,7 +3596,7 @@ function screen_layout($screen) { $columns = array('dashboard' => 4, 'post' => 2, 'page' => 2, 'link' => 2); // Add custom post types - foreach ( get_post_types( array('_show' => true) ) as $post_type ) + foreach ( get_post_types( array('show_ui' => true) ) as $post_type ) $columns[$post_type] = 2; $columns = apply_filters('screen_layout_columns', $columns, $screen->id, $screen);