From f1389ef76c2567033c962a3f83cdc706fbfde595 Mon Sep 17 00:00:00 2001 From: Peter Westwood 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: https://develop.svn.wordpress.org/trunk@17860 602fd350-edb4-49c9-b593-d223f7449a82 --- 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( '' ); }