diff -r c7c34916027a -r 177826044cd9 wp/wp-admin/term.php --- a/wp/wp-admin/term.php Mon Oct 14 18:06:33 2019 +0200 +++ b/wp/wp-admin/term.php Mon Oct 14 18:28:13 2019 +0200 @@ -31,8 +31,8 @@ $title = $tax->labels->edit_item; if ( ! in_array( $taxonomy, get_taxonomies( array( 'show_ui' => true ) ) ) || - ! current_user_can( 'edit_term', $tag->term_id ) -) { + ! current_user_can( 'edit_term', $tag->term_id ) ) { + wp_die( '
' . __( 'Sorry, you are not allowed to edit this item.' ) . '
', @@ -58,10 +58,12 @@ $submenu_file = "edit-tags.php?taxonomy=$taxonomy"; } -get_current_screen()->set_screen_reader_content( array( - 'heading_pagination' => $tax->labels->items_list_navigation, - 'heading_list' => $tax->labels->items_list, -) ); +get_current_screen()->set_screen_reader_content( + array( + 'heading_pagination' => $tax->labels->items_list_navigation, + 'heading_list' => $tax->labels->items_list, + ) +); wp_enqueue_script( 'admin-tags' ); require_once( ABSPATH . 'wp-admin/admin-header.php' ); include( ABSPATH . 'wp-admin/edit-tag-form.php' );