mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-23 08:41:24 +01:00
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:
parent
93465db918
commit
7a38616d0f
@ -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