Make post box states a global user preference. see #13032
git-svn-id: https://develop.svn.wordpress.org/trunk@14112 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4e3da4d6a3
commit
1267be476d
@ -1003,11 +1003,11 @@ case 'closed-postboxes' :
|
||||
die('-1');
|
||||
|
||||
if ( is_array($closed) )
|
||||
update_user_option($user->ID, "closedpostboxes_$page", $closed);
|
||||
update_user_option($user->ID, "closedpostboxes_$page", $closed, true);
|
||||
|
||||
if ( is_array($hidden) ) {
|
||||
$hidden = array_diff( $hidden, array('submitdiv', 'linksubmitdiv', 'manage-menu', 'create-menu') ); // postboxes that are always shown
|
||||
update_user_option($user->ID, "meta-box-hidden_$page", $hidden);
|
||||
update_user_option($user->ID, "meta-box-hidden_$page", $hidden, true);
|
||||
}
|
||||
|
||||
die('1');
|
||||
|
Loading…
Reference in New Issue
Block a user