diff --git a/src/wp-admin/edit-tags.php b/src/wp-admin/edit-tags.php index c71212b95c..998c06e3c3 100644 --- a/src/wp-admin/edit-tags.php +++ b/src/wp-admin/edit-tags.php @@ -354,14 +354,17 @@ endif; +cap->edit_terms ); + +if ( $can_edit_terms ) { +?>
cap->edit_terms ) ) { if ( 'category' == $taxonomy ) { /** * Fires before the Add Category form. @@ -559,13 +562,12 @@ if ( current_user_can( $tax->cap->edit_terms ) ) { do_action( "{$taxonomy}_add_form", $taxonomy ); ?>
- -
+ views(); ?> @@ -612,12 +614,15 @@ endif; * @param string $taxonomy The taxonomy name. */ do_action( "after-{$taxonomy}-table", $taxonomy ); -?> +if ( $can_edit_terms ) { +?>
+ +