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:
parent
076dc80a08
commit
730c6d3fd8
|
@ -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…
Reference in New Issue