Fix screen layout options for custom post types. see #9674

git-svn-id: http://svn.automattic.com/wordpress/trunk@13045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-02-10 17:41:07 +00:00
parent ec07eb3768
commit 45aba89157
1 changed files with 1 additions and 1 deletions

View File

@ -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);