Multisite: Replace is_super_admin()
with manage_network
when showing a message to the network administrator in wp-signup.php
.
Props jignesh.nakrani. Fixes #39209. See #37616. git-svn-id: https://develop.svn.wordpress.org/trunk@39944 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
816686b709
commit
8bf00cceaf
@ -816,7 +816,7 @@ $active_signup = get_site_option( 'registration', 'none' );
|
||||
*/
|
||||
$active_signup = apply_filters( 'wpmu_active_signup', $active_signup );
|
||||
|
||||
if ( is_super_admin() ) {
|
||||
if ( current_user_can( 'manage_network' ) ) {
|
||||
echo '<div class="mu_alert">';
|
||||
_e( 'Greetings Network Administrator!' );
|
||||
echo ' ';
|
||||
|
Loading…
Reference in New Issue
Block a user