From 8f5e0ae06c37fac5d2dd51f710fffc564fd3d365 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 9 Jan 2019 12:05:50 +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. Built from https://develop.svn.wordpress.org/trunk@44515 git-svn-id: http://core.svn.wordpress.org/trunk@44346 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-tags.php | 15 ++++++++++----- wp-includes/version.php | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index c71212b95c..998c06e3c3 100644 --- a/wp-admin/edit-tags.php +++ b/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 ) { +?>
+ + diff --git a/wp-includes/version.php b/wp-includes/version.php index 13c970b2ab..5ad11f4e93 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44514'; +$wp_version = '5.1-alpha-44515'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.