Make WordPress Core

Ticket #33676: 33676.diff

File 33676.diff, 634 bytes (added by kraftbj, 9 years ago)

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

  • src/wp-admin/press-this.php

     
    1212require_once( dirname( __FILE__ ) . '/admin.php' );
    1313
    1414if ( ! current_user_can( 'edit_posts' ) || ! current_user_can( get_post_type_object( 'post' )->cap->create_posts ) )
    15         wp_die( __( 'Cheatin’ uh?' ), 403 );
     15        wp_die(
     16                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
     17                '<p>' . __( 'You are not allowed to create posts as this user.' ) . '</p>',
     18                403 );
    1619
    1720/**
    1821 * @global WP_Press_This $wp_press_this