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.

Built from https://develop.svn.wordpress.org/trunk@39944


git-svn-id: http://core.svn.wordpress.org/trunk@39881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Felix Arntz 2017-01-24 11:08:42 +00:00
parent 6fcb0e8b7f
commit ff74a4cb7b
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-39943';
$wp_version = '4.8-alpha-39944';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -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 ' ';