Prevent the Slug metabox from being forever hidden when showing all metaboxes. Fixes #12088

git-svn-id: http://svn.automattic.com/wordpress/trunk@14065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32
2010-04-11 02:41:40 +00:00
parent fbf39813dc
commit 59bb0c7d9c
2 changed files with 8 additions and 7 deletions

View File

@@ -2967,12 +2967,11 @@ function get_hidden_meta_boxes($screen) {
if ( is_string($screen) )
$screen = convert_to_screen($screen);
$hidden = (array) get_user_option( "meta-box-hidden_$screen->id" );
$hidden = get_user_option( "meta-box-hidden_$screen->id" );
// Hide slug boxes by default
if ( empty($hidden[0]) ) {
if ( !is_array($hidden) )
$hidden = array('slugdiv');
}
return $hidden;
}