Make WordPress Core

Ticket #33675: 33675.diff

File 33675.diff, 652 bytes (added by kraftbj, 10 years ago)

original props ericlewis. modified to use pre-existing string.

  • src/wp-admin/post-new.php

     
    5555$editing = true;
    5656
    5757if ( ! 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&#8217; uh?' ) . '</h1>' .
     60                '<p>' . __( 'You are not allowed to create posts as this user.' ) . '</p>',
     61                403 );
    5962
    6063// Schedule auto-draft cleanup
    6164if ( ! wp_next_scheduled( 'wp_scheduled_auto_draft_delete' ) )