From 0fae76fc0c930e8ccc0943358627f39f8c900846 Mon Sep 17 00:00:00 2001 From: Timi Wahalahti Date: Tue, 10 Oct 2023 00:22:26 +0300 Subject: [PATCH] Users: Add notice to use w.org email when inviting (#963) --- .../wp-content/mu-plugins/wcorg-misc.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/public_html/wp-content/mu-plugins/wcorg-misc.php b/public_html/wp-content/mu-plugins/wcorg-misc.php index ac1c9b969..ddd1bf398 100644 --- a/public_html/wp-content/mu-plugins/wcorg-misc.php +++ b/public_html/wp-content/mu-plugins/wcorg-misc.php @@ -679,6 +679,23 @@ function wcorg_country_list_mods( $countries ) { } add_filter( 'wcorg_get_countries', 'wcorg_country_list_mods' ); +/** + * Tell the site administrators to use the WordPress.org account information when adding new users. + */ +function wcorg_user_new_wporg_credentials_notice() { + global $pagenow; + + if ( 'user-new.php' !== $pagenow ) { + return; + } + ?> +
+

Use WordPress.org accounts to add and invite users. You should use the same email address that user has registered to WordPress.org with.' ) ); ?>

+
+