]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/post-new.php
WordPress 4.1
[autoinstalls/wordpress.git] / wp-admin / post-new.php
index bfdffaf3a3534faeaa1454f7c3949dcf28ff6490..d919d55ca111399c1df12e69aed15742620358ae 100644 (file)
@@ -48,7 +48,7 @@ $title = $post_type_object->labels->add_new_item;
 $editing = true;
 
 if ( ! current_user_can( $post_type_object->cap->edit_posts ) || ! current_user_can( $post_type_object->cap->create_posts ) )
-       wp_die( __( 'Cheatin’ uh?' ) );
+       wp_die( __( 'Cheatin’ uh?' ), 403 );
 
 // Schedule auto-draft cleanup
 if ( ! wp_next_scheduled( 'wp_scheduled_auto_draft_delete' ) )