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:
parent
3debdcb100
commit
f1389ef76c
@ -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( '' );
|
||||
}
|
||||
$classes = in_array( $id, $closed ) ? array( 'closed' ) : array( '' );
|
||||
} else {
|
||||
$classes = array( '' );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user