Prevent hiding of the Publish postbox

git-svn-id: https://develop.svn.wordpress.org/trunk@10917 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-04-13 03:39:46 +00:00
parent a902058b25
commit fd57c70c84
1 changed files with 3 additions and 1 deletions

View File

@ -981,8 +981,10 @@ case 'closed-postboxes' :
if ( is_array($closed) )
update_usermeta($user->ID, 'closedpostboxes_'.$page, $closed);
if ( is_array($hidden) )
if ( is_array($hidden) ) {
$hidden = array_diff( $hidden, array('submitdiv', 'pagesubmitdiv', 'linksubmitdiv') ); // postboxes that are always shown
update_usermeta($user->ID, 'meta-box-hidden_'.$page, $hidden);
}
die('1');
break;