Changeset 33864
- Timestamp:
- 09/02/2015 06:35:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/post-new.php
r32642 r33864 55 55 $editing = true; 56 56 57 if ( ! current_user_can( $post_type_object->cap->edit_posts ) || ! current_user_can( $post_type_object->cap->create_posts ) ) 58 wp_die( __( 'Cheatin’ uh?' ), 403 ); 57 if ( ! current_user_can( $post_type_object->cap->edit_posts ) || ! current_user_can( $post_type_object->cap->create_posts ) ) { 58 wp_die( 59 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 60 '<p>' . __( 'You are not allowed to create posts as this user.' ) . '</p>', 61 403 62 ); 63 } 59 64 60 65 // Schedule auto-draft cleanup
Note: See TracChangeset
for help on using the changeset viewer.