mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
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:
parent
c90a7a674d
commit
f99e85d728
@ -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( '' );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user