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:
Sergey Biryukov 2020-10-12 15:45:27 +00:00
parent d2bac82f2f
commit 1ca1817ced

View File

@ -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() );
}