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

See #27882.


git-svn-id: https://develop.svn.wordpress.org/trunk@28312 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-05-06 18:14:16 +00:00
parent a9dfbabfe7
commit 0f9b925ed5

View File

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