Don't allow submit box to be hidden. see #7552

git-svn-id: http://svn.automattic.com/wordpress/trunk@8868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-09-11 18:56:04 +00:00
parent f7f0523642
commit 02b3f80641
1 changed files with 3 additions and 0 deletions

View File

@ -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"' : '') . ' />';