From 7a38616d0f99cbccb2ef68c97f18372ba07c5b4e Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 14 Jan 2011 01:02:15 +0000 Subject: [PATCH] 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 --- wp-admin/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index a788b8f8d2..44779f7d2c 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -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' );