Revert these action blocks in wp-admin/post.php to their pre-[26144] state.

see #25824.


git-svn-id: https://develop.svn.wordpress.org/trunk@26231 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-11-15 22:28:57 +00:00
parent f000be8af3
commit b05fb903ac
1 changed files with 2 additions and 11 deletions

View File

@ -118,18 +118,9 @@ case 'post-quickdraft-save':
case 'postajaxpost': case 'postajaxpost':
case 'post': case 'post':
// Check nonce and capabilities check_admin_referer( 'add-' . $post_type );
$nonce = $_REQUEST['_wpnonce'];
$error_msg = false;
if ( ! wp_verify_nonce( $nonce, 'add-post' ) )
$error_msg = 'Unable to submit this form, please refresh and try again.';
if ( ! current_user_can( 'edit_posts' ) )
$error_msg = "Oops, you don't have access to add new drafts.";
$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; break;