WordPress.org

Make WordPress Core

Changeset 8715


Ignore:
Timestamp:
08/22/08 21:34:18 (6 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r8712 r8715  
    12551255    do_action('do_meta_boxes', $page, $context, $object); 
    12561256 
    1257     $hidden = get_user_option( "meta-box-hidden_$page" ); 
     1257    $hidden = (array) get_user_option( "meta-box-hidden_$page" ); 
    12581258 
    12591259    echo "<div id='$context-sortables' class='meta-box-sortables'>\n"; 
     
    13261326        return; 
    13271327 
    1328     $hidden = get_user_option( "meta-box-hidden_$page" ); 
     1328    $hidden = (array) get_user_option( "meta-box-hidden_$page" ); 
    13291329 
    13301330    echo '<ul class="metabox-prefs">'; 
Note: See TracChangeset for help on using the changeset viewer.