Changeset 13890
- Timestamp:
- 03/30/2010 01:16:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r13865 r13890 242 242 $ptype = get_post_type_object('post'); 243 243 244 if ( !current_user_can( $ptype->edit_type_cap , $post_ID) ) {244 if ( !current_user_can( $ptype->edit_type_cap ) ) { 245 245 if ( 'page' == $ptype->name ) 246 246 wp_die( __('You are not allowed to edit pages.')); … … 493 493 $ptype = get_post_type_object('post'); 494 494 495 if ( !current_user_can( $ptype->edit_type_cap , $post_ID) ) {495 if ( !current_user_can( $ptype->edit_type_cap ) ) { 496 496 if ( 'page' == $ptype->name ) 497 497 return new WP_Error( 'edit_pages', __( 'You are not allowed to create pages on this blog.' ) );
Note: See TracChangeset
for help on using the changeset viewer.