Ticket #33675: 33675.diff
File 33675.diff, 652 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/post-new.php
55 55 $editing = true; 56 56 57 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 ); 58 wp_die( 59 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 60 '<p>' . __( 'You are not allowed to create posts as this user.' ) . '</p>', 61 403 ); 59 62 60 63 // Schedule auto-draft cleanup 61 64 if ( ! wp_next_scheduled( 'wp_scheduled_auto_draft_delete' ) )