Hide more meta boxes by default. fixes #14212

git-svn-id: http://svn.automattic.com/wordpress/trunk@15555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-08-31 18:27:59 +00:00
parent 5d5f2ed563
commit ca7bec26be

View File

@ -1012,8 +1012,13 @@ function get_hidden_meta_boxes( $screen ) {
$hidden = get_user_option( "metaboxhidden_{$screen->id}" );
// Hide slug boxes by default
if ( !is_array( $hidden ) )
$hidden = array('slugdiv');
if ( !is_array( $hidden ) ) {
if ( 'post' == $screen->base )
$hidden = array('slugdiv', 'trackbacksdiv', 'postcustom', 'postexcerpt');
else
$hidden = array();
$hidden = apply_filters('default_hidden_meta_boxes', $hidden, $screen);
}
return $hidden;
}