From 02b3f806416e6bb994da0b1b2240bbed3ffa04da Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 11 Sep 2008 18:56:04 +0000 Subject: [PATCH] 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 --- wp-admin/includes/template.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index d04be17a42..5235c3cf18 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -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 '