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
This commit is contained in:
parent
6a0b0ddeb8
commit
6a5c43f5fc
@ -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
Block a user