Ticket #33671: 33671.diff
File 33671.diff, 595 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/edit.php
31 31 wp_die( __( 'Invalid post type' ) ); 32 32 33 33 if ( ! current_user_can( $post_type_object->cap->edit_posts ) ) 34 wp_die( __( 'Cheatin’ uh?' ), 403 ); 34 wp_die( 35 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 36 '<p>' . __( 'You are not allowed to edit these items.' ) . '</p>', 37 403 ); 35 38 36 39 $wp_list_table = _get_list_table('WP_Posts_List_Table'); 37 40 $pagenum = $wp_list_table->get_pagenum();