Make WordPress Core


Ignore:
Timestamp:
03/02/2010 06:06:14 PM (14 years ago)
Author:
ryan
Message:

Fix metabox hiding. Props scribu. fixes #12439

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r13538 r13551  
    10221022
    10231023    if ( is_array($closed) )
    1024         update_user_meta($user->ID, 'closedpostboxes_'.$page, $closed);
     1024        update_user_option($user->ID, "closedpostboxes_$page", $closed);
    10251025
    10261026    if ( is_array($hidden) ) {
    10271027        $hidden = array_diff( $hidden, array('submitdiv', 'linksubmitdiv') ); // postboxes that are always shown
    1028         update_user_meta($user->ID, 'meta-box-hidden_'.$page, $hidden);
     1028        update_user_option($user->ID, "meta-box-hidden_$page", $hidden);
    10291029    }
    10301030
     
    10441044
    10451045    if ( is_array($hidden) )
    1046         update_user_meta($user->ID, "manage-$page-columns-hidden", $hidden);
     1046        update_user_option($user->ID, "manage-$page-columns-hidden", $hidden);
    10471047
    10481048    die('1');
     
    10641064
    10651065    if ( $page_columns )
    1066         update_user_meta($user->ID, "screen_layout_$page", $page_columns);
     1066        update_user_option($user->ID, "screen_layout_$page", $page_columns);
    10671067
    10681068    die('1');
Note: See TracChangeset for help on using the changeset viewer.