From 4a785cbeb0546cdb6c40b8c6d97f53ff1beb4542 Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Sat, 4 Jul 2015 04:00:48 +0000 Subject: [PATCH] Only output Save Changes in My Sites when a user is a member of more than one site. The conditional also checks for the existence of filters that may otherwise alter the HTML in My Sites to include extra form inputs for these users. If a filter is in use, the Save Changes button will display. Props @Oxymoron, @obenland. Fixes #32645. git-svn-id: https://develop.svn.wordpress.org/trunk@33080 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/my-sites.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/my-sites.php b/src/wp-admin/my-sites.php index fbdd2cece4..13539c4087 100644 --- a/src/wp-admin/my-sites.php +++ b/src/wp-admin/my-sites.php @@ -113,9 +113,13 @@ else : echo ""; }?> - - - + 1 || has_action( 'myblogs_allblogs_options' ) || has_filter( 'myblogs_options' ) ) { + ?>