Skip to content

Commit

Permalink
Multisite: Replace is_super_admin() with manage_network when show…
Browse files Browse the repository at this point in the history
…ing 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
  • Loading branch information
Felix Arntz committed Jan 24, 2017
1 parent 6fcb0e8 commit ff74a4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion wp-signup.php
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ function signup_get_available_languages() {
*/
$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 ' ';
Expand Down

0 comments on commit ff74a4c

Please sign in to comment.