Index: edit-form-advanced.php
===================================================================
--- edit-form-advanced.php	(revision 6429)
+++ edit-form-advanced.php	(working copy)
@@ -170,7 +170,7 @@
 if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) {
 ?>
 <?php if ( current_user_can('publish_posts') ) : ?>
-	<input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" />
+	<input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" onclick="if(document.forms.post.post_status[3].checked) return confirm('<?php _e('Are you sure you want your private post published for the world to see? (If not, try the Save button.)\n\nClick OK to continue publishing or Cancel to stop.') ?>'); else return true;" />
 <?php else : ?>
 	<input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Submit for Review') ?>" />
 <?php endif; ?>
Index: edit-form.php
===================================================================
--- edit-form.php	(revision 6429)
+++ edit-form.php	(working copy)
@@ -57,7 +57,7 @@
 	<input name="saveasprivate" type="submit" id="saveasprivate" tabindex="10" value="<?php _e('Save as Private') ?>" />
 
 	 <?php if ( current_user_can('edit_posts') ) : ?>
-	<input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="<?php _e('Publish') ?>" />
+	<input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="<?php _e('Publish') ?>" onclick="if(document.forms.post.post_status[3].checked) return confirm('<?php _e('Are you sure you want your private post published for the world to see? (If not, try the Save button.)\n\nClick OK to continue publishing or Cancel to stop.') ?>'); else return true;" />
 <?php endif; ?>
 
 <?php if ('bookmarklet' != $mode) {
Index: edit-page-form.php
===================================================================
--- edit-page-form.php	(revision 6429)
+++ edit-page-form.php	(working copy)
@@ -157,7 +157,7 @@
 if ('publish' != $post->post_status || 0 == $post_ID):
 ?>
 <?php if ( current_user_can('publish_pages') ) : ?>
-	<input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" />
+	<input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" onclick="if(document.forms.post.post_status[3].checked) return confirm('<?php _e('Are you sure you want your private post published for the world to see? (If not, try the Save button.)\n\nClick OK to continue publishing or Cancel to stop.') ?>'); else return true;" />
 <?php endif; endif;?>
 <input name="referredby" type="hidden" id="referredby" value="<?php echo $sendto; ?>" />
 </p>

