Ticket #33676: 33676.diff
File 33676.diff, 634 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/press-this.php
12 12 require_once( dirname( __FILE__ ) . '/admin.php' ); 13 13 14 14 if ( ! 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’ uh?' ) . '</h1>' . 17 '<p>' . __( 'You are not allowed to create posts as this user.' ) . '</p>', 18 403 ); 16 19 17 20 /** 18 21 * @global WP_Press_This $wp_press_this