In `wp-admin/post.php`, `break` is unreachabled after `exit`.

See #27882.

Built from https://develop.svn.wordpress.org/trunk@28312


git-svn-id: http://core.svn.wordpress.org/trunk@28140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-05-06 18:15:15 +00:00
parent 327b38f298
commit 517dbfaa21
1 changed files with 0 additions and 8 deletions

View File

@ -128,7 +128,6 @@ case 'post-quickdraft-save':
edit_post();
wp_dashboard_quick_press();
exit;
break;
case 'postajaxpost':
case 'post':
@ -136,7 +135,6 @@ case 'post':
$post_id = 'postajaxpost' == $action ? edit_post() : write_post();
redirect_post( $post_id );
exit();
break;
case 'edit':
$editing = true;
@ -237,7 +235,6 @@ case 'editpost':
redirect_post($post_id); // Send user on their way while we keep working
exit();
break;
case 'trash':
check_admin_referer('trash-post_' . $post_id);
@ -261,7 +258,6 @@ case 'trash':
wp_redirect( add_query_arg( array('trashed' => 1, 'ids' => $post_id), $sendback ) );
exit();
break;
case 'untrash':
check_admin_referer('untrash-post_' . $post_id);
@ -280,7 +276,6 @@ case 'untrash':
wp_redirect( add_query_arg('untrashed', 1, $sendback) );
exit();
break;
case 'delete':
check_admin_referer('delete-post_' . $post_id);
@ -306,7 +301,6 @@ case 'delete':
wp_redirect( add_query_arg('deleted', 1, $sendback) );
exit();
break;
case 'preview':
check_admin_referer( 'update-post_' . $post_id );
@ -315,11 +309,9 @@ case 'preview':
wp_redirect($url);
exit();
break;
default:
wp_redirect( admin_url('edit.php') );
exit();
break;
} // end switch
include( ABSPATH . 'wp-admin/admin-footer.php' );