From f99e85d728dbf023b6d91f248561cba3153c88c3 Mon Sep 17 00:00:00 2001 From: westi Date: Wed, 11 May 2011 17:05:35 +0000 Subject: [PATCH] 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 --- wp-admin/includes/post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 8ac0756546..239aba20a9 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -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( '' ); }