--- 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(
'<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' .
'<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>',
@@ -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' );