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:
parent
ec07eb3768
commit
45aba89157
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue