Switch this to be inside the else to match previous functionality more closely.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2011-05-11 17:05:35 +00:00
parent c90a7a674d
commit f99e85d728

View File

@ -1036,8 +1036,9 @@ function postbox_classes( $id, $page ) {
} elseif ( $closed = get_user_option('closedpostboxes_'.$page ) ) { } elseif ( $closed = get_user_option('closedpostboxes_'.$page ) ) {
if ( !is_array( $closed ) ) { if ( !is_array( $closed ) ) {
$classes = array( '' ); $classes = array( '' );
} } else {
$classes = in_array( $id, $closed ) ? array( 'closed' ) : array( '' ); $classes = in_array( $id, $closed ) ? array( 'closed' ) : array( '' );
}
} else { } else {
$classes = array( '' ); $classes = array( '' );
} }