Prevent hiding of the Publish postbox

git-svn-id: http://svn.automattic.com/wordpress/trunk@10917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-04-13 03:39:46 +00:00
parent 076dc80a08
commit 730c6d3fd8
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;