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:
parent
1f730d43b8
commit
96fa9d4b56
@ -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' );
|
||||
|
Loading…
Reference in New Issue
Block a user