From e3d0969dedfa198eb22a3d1e806060a9dd65bd76 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Tue, 7 Dec 2010 21:35:46 +0000 Subject: [PATCH] Revert brokenness. See #15326. git-svn-id: https://develop.svn.wordpress.org/trunk@16779 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wp-admin/edit.php b/wp-admin/edit.php index c038559674..2228f65b5a 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -7,10 +7,7 @@ */ /** WordPress Administration Bootstrap */ -require_once( './admin.php' ); -if ( !current_user_can( $post_type_object->cap->edit_posts ) ) - wp_die( __( 'Cheatin’ uh?' ) ); - +require_once( './admin.php' ); $wp_list_table = get_list_table('WP_Posts_List_Table'); $wp_list_table->check_permissions();