WordPress.org

Make WordPress Core

Changeset 14112


Ignore:
Timestamp:
04/16/10 17:39:24 (4 years ago)
Author:
ryan
Message:

Make post box states a global user preference. see #13032

File:
1 edited

Legend:

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

    r14065 r14112  
    10041004 
    10051005    if ( is_array($closed) ) 
    1006         update_user_option($user->ID, "closedpostboxes_$page", $closed); 
     1006        update_user_option($user->ID, "closedpostboxes_$page", $closed, true); 
    10071007 
    10081008    if ( is_array($hidden) ) { 
    10091009        $hidden = array_diff( $hidden, array('submitdiv', 'linksubmitdiv', 'manage-menu', 'create-menu') ); // postboxes that are always shown 
    1010         update_user_option($user->ID, "meta-box-hidden_$page", $hidden); 
     1010        update_user_option($user->ID, "meta-box-hidden_$page", $hidden, true); 
    10111011    } 
    10121012 
Note: See TracChangeset for help on using the changeset viewer.