Don't allow submit box to be hidden. see #7552
git-svn-id: https://develop.svn.wordpress.org/trunk@8868 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0bfa8da71c
commit
0f6bf551a3
@ -1869,6 +1869,9 @@ function meta_box_prefs($page) {
|
||||
foreach ( $wp_meta_boxes[$page][$context][$priority] as $box ) {
|
||||
if ( false == $box || ! $box['title'] )
|
||||
continue;
|
||||
// Submit box cannot be hidden
|
||||
if ( 'submitdiv' == $box['id'] )
|
||||
continue;
|
||||
$box_id = $box['id'];
|
||||
echo '<label for="' . $box_id . '-hide">';
|
||||
echo '<input class="hide-postbox-tog" name="' . $box_id . '-hide" type="checkbox" id="' . $box_id . '-hide" value="' . $box_id . '"' . (! in_array($box_id, $hidden) ? ' checked="checked"' : '') . ' />';
|
||||
|
Loading…
Reference in New Issue
Block a user