Typecast to prevent errors when option is not set, see #7552

git-svn-id: http://svn.automattic.com/wordpress/trunk@8715 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-08-22 21:34:18 +00:00
parent 9bd5723c66
commit 50683ea4ad

View File

@ -1254,7 +1254,7 @@ function do_meta_boxes($page, $context, $object) {
do_action('do_meta_boxes', $page, $context, $object);
$hidden = get_user_option( "meta-box-hidden_$page" );
$hidden = (array) get_user_option( "meta-box-hidden_$page" );
echo "<div id='$context-sortables' class='meta-box-sortables'>\n";
@ -1325,7 +1325,7 @@ function meta_box_prefs($page) {
if ( empty($wp_meta_boxes[$page]) )
return;
$hidden = get_user_option( "meta-box-hidden_$page" );
$hidden = (array) get_user_option( "meta-box-hidden_$page" );
echo '<ul class="metabox-prefs">';
foreach ( array_keys($wp_meta_boxes[$page]) as $context ) {