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:
parent
5d5f2ed563
commit
ca7bec26be
|
@ -1012,8 +1012,13 @@ function get_hidden_meta_boxes( $screen ) {
|
||||||
$hidden = get_user_option( "metaboxhidden_{$screen->id}" );
|
$hidden = get_user_option( "metaboxhidden_{$screen->id}" );
|
||||||
|
|
||||||
// Hide slug boxes by default
|
// Hide slug boxes by default
|
||||||
if ( !is_array( $hidden ) )
|
if ( !is_array( $hidden ) ) {
|
||||||
$hidden = array('slugdiv');
|
if ( 'post' == $screen->base )
|
||||||
|
$hidden = array('slugdiv', 'trackbacksdiv', 'postcustom', 'postexcerpt');
|
||||||
|
else
|
||||||
|
$hidden = array();
|
||||||
|
$hidden = apply_filters('default_hidden_meta_boxes', $hidden, $screen);
|
||||||
|
}
|
||||||
|
|
||||||
return $hidden;
|
return $hidden;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue