From 8d38a2f78ee414938bf48d9389bd6c1e4ebee424 Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@13890 602fd350-edb4-49c9-b593-d223f7449a82 --- 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