Change meta-box-hidden to metaboxhidden to adjust for new key sanitization rules and maintain the same key name as 2.9. fixes #13032
git-svn-id: http://svn.automattic.com/wordpress/trunk@14113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1007,7 +1007,7 @@ case 'closed-postboxes' :
|
||||
|
||||
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, true);
|
||||
update_user_option($user->ID, "metaboxhidden_$page", $hidden, true);
|
||||
}
|
||||
|
||||
die('1');
|
||||
|
||||
Reference in New Issue
Block a user