From aa3be4873ee3528af2310a902c9dd27bd81d18ba Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 9 Jan 2019 12:04:32 +0000 Subject: [PATCH] Taxonomy: Display term list table in full width if there is no edit form. Makes sure there is no empty space when a user can manage terms but lacks the capability to edit terms. Props mathieuhays, marcwieland95. Fixes #43743. git-svn-id: https://develop.svn.wordpress.org/trunk@44515 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/edit-tags.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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 ) { +?>
+ +