mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-25 10:38:11 +01:00
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:
parent
9bd5723c66
commit
50683ea4ad
@ -1254,7 +1254,7 @@ function do_meta_boxes($page, $context, $object) {
|
|||||||
|
|
||||||
do_action('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";
|
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]) )
|
if ( empty($wp_meta_boxes[$page]) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$hidden = get_user_option( "meta-box-hidden_$page" );
|
$hidden = (array) get_user_option( "meta-box-hidden_$page" );
|
||||||
|
|
||||||
echo '<ul class="metabox-prefs">';
|
echo '<ul class="metabox-prefs">';
|
||||||
foreach ( array_keys($wp_meta_boxes[$page]) as $context ) {
|
foreach ( array_keys($wp_meta_boxes[$page]) as $context ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user