From d756c57432dc4aa1465beaff27c63952e53572a3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 23 Apr 2020 18:56:40 +0000 Subject: [PATCH] Networks and Sites: Don't display an empty Menu Settings section in network admin if there are no items. This accounts for returning an empty array from the `mu_menu_items` filter. Props dlh. Fixes #49977. git-svn-id: https://develop.svn.wordpress.org/trunk@47616 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/network/settings.php | 72 +++++++++++++++++-------------- 1 file changed, 39 insertions(+), 33 deletions(-) diff --git a/src/wp-admin/network/settings.php b/src/wp-admin/network/settings.php index 188ce1309c..ed7bb5f5dc 100644 --- a/src/wp-admin/network/settings.php +++ b/src/wp-admin/network/settings.php @@ -438,41 +438,47 @@ if ( isset( $_GET['updated'] ) ) { } ?> -

- - - - - - +

+ + + + + + +