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

git-svn-id: https://develop.svn.wordpress.org/trunk@17860 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2011-05-11 17:05:35 +00:00
parent 3debdcb100
commit f1389ef76c
1 changed files with 2 additions and 1 deletions

View File

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