Hide the many extraneous meta boxes for pages by default too. see #14212.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-01-14 01:02:15 +00:00
parent 93465db918
commit 7a38616d0f

View File

@ -1048,7 +1048,7 @@ function get_hidden_meta_boxes( $screen ) {
// Hide slug boxes by default
if ( !is_array( $hidden ) ) {
if ( 'post' == $screen->base )
if ( 'post' == $screen->base || 'page' == $screen->base )
$hidden = array('slugdiv', 'trackbacksdiv', 'postcustom', 'postexcerpt', 'commentstatusdiv', 'commentsdiv', 'authordiv', 'revisionsdiv');
else
$hidden = array( 'slugdiv' );