]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/post.php
WordPress 4.2.3
[autoinstalls/wordpress.git] / wp-admin / post.php
index 0c38b5631e074150c872d83a364ca6b4c46eb626..52f1bda297fd146e054fa4901ed68853d86b6047 100644 (file)
@@ -115,8 +115,9 @@ case 'post-quickdraft-save':
        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.' );
+       if ( ! current_user_can( 'edit_posts' ) ) {
+               exit;
+       }
 
        if ( $error_msg )
                return wp_dashboard_quick_press( $error_msg );