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:
parent
f7f0523642
commit
02b3f80641
|
@ -1869,6 +1869,9 @@ function meta_box_prefs($page) {
|
||||||
foreach ( $wp_meta_boxes[$page][$context][$priority] as $box ) {
|
foreach ( $wp_meta_boxes[$page][$context][$priority] as $box ) {
|
||||||
if ( false == $box || ! $box['title'] )
|
if ( false == $box || ! $box['title'] )
|
||||||
continue;
|
continue;
|
||||||
|
// Submit box cannot be hidden
|
||||||
|
if ( 'submitdiv' == $box['id'] )
|
||||||
|
continue;
|
||||||
$box_id = $box['id'];
|
$box_id = $box['id'];
|
||||||
echo '<label for="' . $box_id . '-hide">';
|
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"' : '') . ' />';
|
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