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

git-svn-id: https://develop.svn.wordpress.org/trunk@17294 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-01-14 01:02:15 +00:00
parent 1f730d43b8
commit 96fa9d4b56
1 changed files with 1 additions and 1 deletions

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' );