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:
parent
a902058b25
commit
fd57c70c84
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user