From e2c3b8769317aa8e284247c6e0fc0570bff9a064 Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 30 Mar 2010 13:16:28 +0000 Subject: [PATCH] Fix typos in [13729]. edit_type_cap is a primitive cap, not meta. @todo: audit ptype cap calls. git-svn-id: http://svn.automattic.com/wordpress/trunk@13890 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 0259f52877..58b3593e80 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -241,7 +241,7 @@ function bulk_edit_posts( $post_data = null ) { else $ptype = get_post_type_object('post'); - if ( !current_user_can( $ptype->edit_type_cap, $post_ID ) ) { + if ( !current_user_can( $ptype->edit_type_cap ) ) { if ( 'page' == $ptype->name ) wp_die( __('You are not allowed to edit pages.')); else @@ -492,7 +492,7 @@ function wp_write_post() { else $ptype = get_post_type_object('post'); - if ( !current_user_can( $ptype->edit_type_cap, $post_ID ) ) { + if ( !current_user_can( $ptype->edit_type_cap ) ) { if ( 'page' == $ptype->name ) return new WP_Error( 'edit_pages', __( 'You are not allowed to create pages on this blog.' ) ); else