mirror of
git://develop.git.wordpress.org/
synced 2025-02-13 03:04:42 +01:00
Docs: Correct comments in wpmu_new_site_admin_notification()
per the documentation standards.
See #42134. git-svn-id: https://develop.svn.wordpress.org/trunk@49130 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d2bac82f2f
commit
1ca1817ced
@ -1736,10 +1736,10 @@ function wpmu_new_site_admin_notification( $site_id, $user_id ) {
|
||||
$network_admin = get_user_by( 'email', $email );
|
||||
|
||||
if ( $network_admin ) {
|
||||
// If the network admin email address corresponds to a user, switch to their locale
|
||||
// If the network admin email address corresponds to a user, switch to their locale.
|
||||
$switched_locale = switch_to_locale( get_user_locale( $network_admin ) );
|
||||
} else {
|
||||
// Otherwise switch to the locale of the current site
|
||||
// Otherwise switch to the locale of the current site.
|
||||
$switched_locale = switch_to_locale( get_locale() );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user